ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Nativescript-ui-chart : fillColors property not working in Donut Series #1547

Open AnetiaF opened 2 years ago

AnetiaF commented 2 years ago

Please take a minute to read our NativeScript Code of Conduct before proceeding with posting issues or discussing. The purpose of this guide is to make communication and cooperation within our forums a pleasure for you and the other members.

Please, provide the details below:

Tell us about the problem

I have implemented the donut chart in sap mdk application. The colors in the chart are getting repeated if the binded items are more than 8. I tried using the fillColors property to specify the colors for the items, but it doesnt work. The entire chart is getting displayed in black color.

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

narender56 commented 1 year ago

For me, it's not working only in android.

<RadPieChart allowAnimation="true" [width]="width" [height]="height" class="dount-chart p-0">
        <DonutSeries
          tkPieSeries
          [innerRadiusFactor]="innerRadiusFactor"
          [outerRadiusFactor]="outerRadiusFactor"
          valueProperty="amount"
          legendLabel="label"
          [items]="data.sets"
          [strokeWidth]="strokeWidth"
          [fillColors]="getFillColors()"
        ></DonutSeries>
      </RadPieChart>