How to set default seriesstyle in charts in Ax 2012

Description:- 

Change in Graphics class and the ChartFX macro and found how and where the column style is being set. To set up your own chart style and follow the current pattern in AX, try the following:

1.       Find the SeriesChartType enum integer value by searching this list: datavisualization charting seriescharttype (This list is in order, and is 0-based. Spline is enum value 4).
2.       Create a macro for this value in ChartFX like #DEFINE.SERIES_SPLINE (4). Three values like this (for Point, Bar, and Column) are already defined in the ChartFX macro.
3.       Modify the classDeclaration of the Graphics class to add another macro: #DEFINE.SeriesChartTypeEnum_Spline("Spline")
4.       Modify the setChartType method of the Graphics class. After the current if statements present in the method, add this:

else if (seriesType == #SERIES_SPLINE)

{

    newChartType = ClrInterop::parseClrEnum(#SeriesChartTypeEnum,   #SeriesChartTypeEnum_Spline);

}

5.       Now you can go back to your original code sample, and in place of Graphics.parmSeriesType(#line);, put Graphics.parmSeriesType(#SERIES_SPLINE);

Related Posts

Previous
Next Post »

Thanks for comments.....