Customize Style

From Documentation

WarningTriangle-32x32.png This page is under construction, so we cannot guarantee the accuracy of the content!

Switching Bwteen Themes

ZK Charts provides many predefined color themes for use.


Here are a list of the themes that you can choose from:

Default

1     chart.setTheme(Theme.DEFAULT);

Grid

1     chart.setTheme(Theme.GRID);

Skies

1     chart.setTheme(Theme.SKIES);

Gray

1     chart.setTheme(Theme.GRAY);

Dark blue

1     chart.setTheme(Theme.DARK_BLUE);

Dark green

1     chart.setTheme(Theme.DARK_GREEN);

Customizing Colors

ZK Charts supports applying solid color and gradient color to all color options, such as setBackgroundColor() or setFillColor().

Solid Color

Solid color can be specified as an RGB triplet or in hexadecimal format or any valid color format in browsers:

  • RGB triplet - rgb(186,86,150)
  • Hexadecimal format - #58BA7A

Gradient Color

< Get Complete Source Code of This Book >


Last Update : 2014/03/06

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.