Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
igDataChart RadialPie color
posted

Hi,

I'm having a problem with radialpie color. I'm using the same settings of columnchart, but the color doesn't work.

{
name: "series2",
title: asseY2,
type: "radialPie",
angleAxis: "angleAxis",
valueAxis: "radiusAxis",
valueMemberPath: asseY2,
markerBrush: "red",
markerOutline: "red",
thickness: 1,
}

What am I doing wrong?

Parents
No Data
Reply
  • 21795
    Verified Answer
    Offline posted

    Hello Francesco,

    If you need to set the color of the ‘pies’ in the radial pie chart you need to set brush and outline for each series you need like this:

    series: [{
     name: "Your Series Name",
     title: "You Series Title",
     type: "radialPie",
     angleAxis: "angleAxis",
     valueAxis: "valueAxis",
     valueMemberPath: "valueMemeberPath",
     thickness: 3,
     brush: "blue",
     outline: "dark blue"
    }]

    In your code you are trying to set brushes and outlines for the markers, but you did not set any markers. By default radial pie chart has no markers. If you need to set markers for your chart you need to set the markerType of your series. The you can set markerBrush and markerOutline.

    Attached is a small sample showing how you can achieve both of these. Please check my sample and let me know if this is what you are looking for or if I am missing something.

    igDataChartRadialSeries.zip

Children