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

  • BarChartExample.zip
    72.1 KB · Views: 559
  • BarChart.png
    BarChart.png
    98.1 KB · Views: 1,659
Last edited:

JanPRO

Well-Known Member
Licensed User
Longtime User

Attachments

  • Charts-Gradient.zip
    72.1 KB · Views: 423

tufanv

Expert
Licensed User
Longtime User
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.
 
Top