Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I looked into the <code>Graphics</code> class and the <code>ChartFX</code> 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:</p> <ol> <li><p>Find the <code>SeriesChartType</code> enum integer value by searching this list: <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.seriescharttype.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.seriescharttype.aspx</a> (This list is in order, and is 0-based. Spline is enum value 4).</p></li> <li><p>Create a macro for this value in <code>ChartFX</code> like <code>#DEFINE.SERIES_SPLINE(4)</code>. Three values like this (for Point, Bar, and Column) are already defined in the <code>ChartFX</code> macro.</p></li> <li><p>Modify the <code>classDeclaration</code> of the <code>Graphics</code> class to add another macro: <code>#DEFINE.SeriesChartTypeEnum_Spline("Spline")</code></p></li> <li><p>Modify the <code>setChartType</code> method of the <code>Graphics</code> class. After the current <code>if</code> statements present in the method, add this:</p> <pre><code>else if (seriesType == #SERIES_SPLINE) { newChartType = ClrInterop::parseClrEnum(#SeriesChartTypeEnum, #SeriesChartTypeEnum_Spline); } </code></pre></li> <li><p>Now you can go back to your original code sample, and in place of <code>Graphics.parmSeriesType(#line);</code>, put <code>Graphics.parmSeriesType(#SERIES_SPLINE);</code></p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload