iOS Code Snippet Chart with JS (WebView)

Hi,

attached you can find a little project which shows the basic integration of a BarChart with Chart.js.

Jan

barchart-png.51654

More examples:
 

Attachments

Last edited:

Attachments

Hi,

you can set the gradient to the BackgroundColor property. I have attached an example.

More information about gradients in JS: https://www.w3schools.com/tags/canvas_createlineargradient.asp

Jan
Dear Jan,

I change the values in a very different ways but i cant catch a real looking gradient. With your sample code for example , it is only a slight transition in the orange , what do i have to do to make it a good transition from white to orange for example ,

I change the second color to 255,255,255,1 for example but couldnt get anything. I also checked the website you wrote but couldnt figure it out.
 
Back
Top