chartJS bar color

0
0

Hello,

I’m starting to use the chartJS extension to make charts.
The tool is really interesting.
I have a problem with configuring a bar chart.
When I set the BackgroundColor property
the color of the bars does not change.
The instruction I use is as follows:
cjs.DataSets (“mydataset”). BackgroundColor = Drawing.Color.Red
I enclose a small example.
I am using Visual studio 2015 and wisej version 1.4.95.0

Thanks

Attachment
  • You must to post comments
0
0

Hi Frank,

now it works correctly.

Tahnks

  • You must to post comments
0
0

Hi Angelo,

you need to cast the dataset to the appropriate Charttype. Then you can either set one color for all bars
or individual colors. See sample code here:

chartjs_backgroundcolor

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.