adessoSE / wicked-charts

Beautiful and interactive javascript charts for Java-based web applications.
Apache License 2.0
90 stars 48 forks source link

SeriesType.Polygon #80

Open pascalhubue opened 6 years ago

pascalhubue commented 6 years ago

Hi I try to use this great tool to prepare Java-Objects.

I can add a CoordinatesSeries type of SCATTER to my Object options (with some parameters): CoordinatesSeries seriesCoord = new CoordinatesSeries(); seriesCoord.setType(SeriesType.SCATTER); options.addSeries(seriesCoord);

I need to use polygons as well, but cannot/find no SeriesType.POLYGON.

How do I have to ad a polygon?

My json should finally inlcude a polygon like the following: series: [{ type: 'scatter', name: 'refPortfolio', data: [[45,75]], marker: { fillColor: '#CDD5BE', lineColor: '#587521', symbol: 'circle', radius: 10 }, zIndex: 8 },{ name: 'Target', type: 'polygon', data: [[41.0, 3.67], [51.0, 2.67], [65.0, 10.67], [71.0, 22.67]], color: '#DFB794', zINdex: 2 }]

Or is there another way to define a polygon?

Thanks for your support! Cheers Pascal

maximAtanasov commented 6 years ago

@pascalhubue Hello, unfortunately we do not actively support Highcharts anymore due to it's license model. Our focus is now on Chart.js, which is completely free. Feel free to try out the latest 3.1.0 version of Wicked-Charts using Chart.js.

If however this issue is important to you and you have a fix, feel free to create a pull request. Contributions are always welcome :)