GWT Linechart options

前端 未结 1 680
说谎
说谎 2021-01-21 17:03

I need to set different line width to different series in a chart. This can be done using the series option here http://code.google.com/intl/sv-SE/apis/chart/in

相关标签:
1条回答
  • 2021-01-21 17:54

    Method 2 is easier:

    You can use Options.set() and pass another Options instance.

    At least for the second option type. series: {0:{color: 'black', visibleInLegend: false}, 3:{color: 'red', visibleInLegend: false}} you can use following code:

    Options options = Options.create();
    options.setTitle(title);
    Options series_options = Options.create();
    series1_options = Options.create();
    series1_options.set("color","black");
    series_options.set("0",series1_options);
    options.set("series",series_options);
    
    0 讨论(0)
提交回复
热议问题