I am creating a pie chart that has two slices of the pie. I know I can add a fill property and a color to say what color I want the entire pie chart but I want to have one slice of the pie chart blue and the other slice green.
majpieChart = new Chart("majorPieChart");
majpieChart.setTheme(Claro).addPlot("default", {
type: "Pie",
font: "normal normal 10pt Tahoma",
fontColor: "#1c3923",
labelWiring: "#1c3923",
radius: 100,
labelStyle: "columns",
htmlLabels: true,
startAngle: -10,
fill : {colors: [ {offset: 0, color: "#00ff78"},
{offset: 1, color: "#7f0043"}
]
}
}).addSeries("Major",majBreak);
I tried this new fill hoping it would give me the same effect requested above but it gives more of a rippling color looking effect. Any thoughts?