GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
I want to apply different color on last column of the chart.
I have 10 columns in chart, 9 columns should have one color and 10th column should have other color.
var data = GoogleVisualr::DataTable.new
data.new_column('string', 'Year' )
data.new_column('number', 'Sale' )
For 2004, 2005, 2006 columns, I want to show sales in "red" color and for 2007, sale should be in "black" color.
Does google_visualr have any option for this ?
Please tell me how to change the color of last column in the chart.
Do take a look at DataTable's color formatters. Those should help you.