chimchim10 / milkchart

Automatically exported from code.google.com/p/milkchart
0 stars 0 forks source link

Tick and line color option in line chart #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This project is just awesome.

I would think it would be great if you could add some options for line charts:
- Options for the ticks: Which tick symbol for which line
- Options for the color: Which line get which color

Original issue reported on code.google.com by s...@liplex.de on 1 Nov 2011 at 6:26

GoogleCodeExporter commented 9 years ago
You can give the contructor an array of color values to pick from when the 
lines are drawn.  As for the shapes, I made it odular so this could be changed, 
but never really finished it up.  Its grabbing shapes from MilkChart.Shapes.  
This could easily be switched to an option where you could supply your own 
object with shapes to use.

Original comment by theivi...@gmail.com on 1 Nov 2011 at 6:34

GoogleCodeExporter commented 9 years ago
I didn't find any kind of option for the colors in the documentation. Could you 
please give me a short excample like the following?

var graph = new MilkChart.Line('graph',{
    width: 680,
    height: 300
});

Thanks in advance

Original comment by s...@liplex.de on 1 Nov 2011 at 7:11

GoogleCodeExporter commented 9 years ago
var graph = new MilkChart.Line('graph',{
    width: 680,
    height: 300,
        colors: ['#000000', '#990000', '#009900', '#000099', '#ffffff']
});

https://github.com/theiviaxx/MilkChart/wiki

Original comment by theivi...@gmail.com on 1 Nov 2011 at 7:20