javascript - Setting colors of slices in highcharts piechart via jsx in React (passing data entries as array, not hash) -
i having trouble setting specific colors each slice of pie chart. passing data field array json file. here example of data:
#json [ [ "a", 1, "#ffffff" ], [ "b", 2, "#a0f0f0" ], [ "c", 3, "#a0a0f0" ] ] here setting slice color using standard piechart format looks without jsx: http://jsfiddle.net/rxfuscvq/
in case, piechart recognizes first line in each array name field , second line y field not recognize third line color field. need pass these values array, presumably because using piecharts in jsx wrapper: http://pastie.org/private/mhixvhkg1j5stgrflqlurg
nonetheless, how can piecharts recognize third line color field?
edit: please see highchartmixin piecharts uses highcharts functionality: http://pastie.org/private/cj8zfsefg9w8u9minpt0ww
Comments
Post a Comment