Chart Marker Line - setting style not working



I'm trying to change the line style for marker lines. With the following code, the lines' color and labels are

chaning but not the style.

Any idea where the error is?


Thank you in advance,






function beforeGeneration(chart, icsc)






/* calculation of variables lower_limit and upper_limit */



 var chart = icsc.getChartInstance();

 var yAxis = chart.getAxes().get(0).getAssociatedAxes().get(0);

 min_ml = MarkerLineImpl.create(yAxis, NumberDataElementImpl.create(lower_limit));

 min_ml.getLabel().getCaption().setValue("Lower Limit");



 max_ml = MarkerLineImpl.create(yAxis, NumberDataElementImpl.create(upper_limit));

 max_ml.getLabel().getCaption().setValue("Upper Limit");






  • The best thing is when you figured out on your own :)

    So, for all interested - it was because of missing package


    importPackage( );


    Have a nice day,


Sign In or Register to comment.