This question is locked. New answers and comments are not allowed.
Hello,
I have this code:
var chart = new Telerik.UI.RadChart(elementById, { dataSource: { data: chart_data, group: { field: "county" } }, series: [ { field: 'population', type: 'column', visibleInLegend: true, color: 'color', stack: false, labels: { visible: true, color: 'black', template: "#=dataItem.county#(#=dataItem.population#)" } } ], valueAxis: { labels: { font: "12pt segoe ui" } }, categoryAxis: { field: 'state', labels: { font: "16pt segoe ui" } }, title: { text: "Click select a bar for more details.", position: "top" }, legend: {visible: true}, background: 'transparent', width: 1700, height: 600, theme: 'light', onseriesclick: myfunction });chart_data = [{ state: Florida, county: Lee, population: 20000, color: red}{ state: Florida, county: Marion, population: 12000, color: yellow}{ state: Florida, county: Polk, population: 5000, color: green}{ state: Texas, county: Lee, population: 1000, color: red}{ state: Texas, county: Marion, population: 10000, color: yellow}{ state: Texas, county: Polk, population: 10900, color: green}]
the graph shows the correct colors (Lee=red, Marion=yellow, Polk=green) but the legend shows
Lee = blue, Marion = red, and Polk = yellow
What am I doing wrong?
Thanks,
Natalie