0

I need a scatterplot like this: http://www.highcharts.com/demo/scatter but, instead of having one color for each serie (male and female, in the example), I need to select the color for each element. Following the example, each person would be coloured with a different level of gray, depending on their age.

As far as I know, Highcharts allow you to select the color of the elements, but it only affects the element pop-up information when you're using scatterplot.

Any other library to do scatterplots? Any way to do it with Highcharts?

Thanks!

4

2 に答える 2

5

配列color内のプロパティを使用して、Hightcharts 内でこれを行うことができるはずです。data

こちらのドキュメントを参照できます。また、このもあります。

前処理を試して、配列に情報をdata追加して変換することができます。color

于 2012-09-18T08:57:05.007 に答える
0

私はいくつかの JavaScript プロジェクトでAMChartsを使用しました。それらには散布図が含まれており、迅速かつ非常に簡単に実装できます。

チャート キャンバスの隅にある名前に満足している場合は、無料バージョンがあります。

特定の点の色を設定するには、このドキュメントhttp://www.amcharts.com/docs/v.2/javascript_reference/graphdataitemcolorのように - のプロパティを設定できますGraphDataItem

于 2012-09-18T08:59:59.393 に答える