tremorlabs / tremor-blocks-issue-tracker

Bug reports and block requests for Tremor Blocks.
1 stars 0 forks source link

[Bug]: Colors Property not working as expected in Donut chart #6

Open sivaranjani07 opened 1 month ago

sivaranjani07 commented 1 month ago

URL

https://blocks.tremor.so/blocks/donut-charts

Block name

Colors in Donut chart

Bug description

In our project we are using Donut chart .However, the Colors property is not working. Despite specifying the colors, the chart is displaying in black color.

What is expected?

Specified Colors needs to be displayed on the chart.

What is actually happening?

No response

Screenshots

No response

What browser(s) are you seeing the problem on?

Chrome

What device(s) are you seeing the problem on? (if applicable)

Desktop

Any additional comments?

No response

christopherkindl commented 1 month ago

Hi @sivaranjani07,

what framework are you using (Next.js, ...)? Make sure that you define the import paths in the tailwind.config.ts correctly.

E.g. for Next.js

  content: [
    './src/**/*.{js,ts,jsx,tsx}',

    // Path to Tremor module
    './node_modules/@tremor/**/*.{js,ts,jsx,tsx}',
  ],

Learn more here