Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to set default series/style in charts?
    primarykey
    data
    text
    <p>Working with charts in Ax2012 and i they work ok. But i want to change the type of graph it shows when it starts up, for example a "Spline"-chart, not the default "column"-chart.</p> <p>This is what i have now: <a href="http://i.stack.imgur.com/RyR9v.png" rel="nofollow">http://i.stack.imgur.com/RyR9v.png</a></p> <p>This is what i want: <a href="http://i.stack.imgur.com/4cIIO.png" rel="nofollow">http://i.stack.imgur.com/4cIIO.png</a></p> <p>Here's a bit of my basic code:</p> <pre><code>Graphics graphics; Microsoft.Dynamics.AX.Framework.Client.Controls.ChartToolBar chartToolbarControl1; #MACROLIB.ChartFx ; chartToolbarControl1 = chartToolbarControlHostChart.control(); chartToolbarControl1.set_ChartControl(Chart.control()); graphics = new graphics(); graphics.ManagedHostToControl(Chart); graphics.parmCreateType(#ct_cluster| #cT_tool); Graphics.parmSeriesType(#line); graphics.create(); </code></pre> <p>After this code I load all the data and show the graph. This works, but I want it to start as a Spline graph. This can easily be done after load by using the chart control above the graph and just selecting the spline type, but I can't get the graph to load with this setting.</p> <p>If i try using the Graphics.parmSeriesType(#line); (or #pie or someother) I don't get an error in my code, however when I run it I get the error:</p> <blockquote> <p>Null could not be obtained.</p> </blockquote> <p>I have tried with several of these macros, but they all yield the same error except if I use #series_point. I have also tried just inserting regular ints from 1-25 to see if this works, but they give me the same error. </p> <p>Any idea of why this happens?</p>
    singulars
    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.
 

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