iOS Code Snippet Chart with JS (WebView)

JanPRO

Well-Known Member
Licensed User
Longtime User

Attachments

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

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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…