Hi,
I've configured the X axis of the chart as follows:
public primaryXAxis: Object = {
labelIntersectAction: 'Rotate45',
valueType: 'Category'
};
and in markup:
<ejs-chart [primaryXAxis]='primaryXAxis'...
but when I add the series dynamically to the chart from code:
const series = [];
myData.forEach(s => {
series.push({
dataSource: this.data,
type: 'Column',
xName: 'Category',
yName: s,
name: s,
width: 2,
marker: this.marker,
columnSpacing: '0.1',
tooltipMappingName: 'MappingName'
});
});
this.chart.addSeries(series);
the configuration does not apply to the X axis.
Any ideas on how to apply the X axis configuration to dynamically added series?