JavaScript- drawing line chart with gRaphael

I'd like to draw a line chart with gRaphael, like the one in the lower right corner: http://g.raphaeljs.com/linechart.html

Now I'd like to change the color of the axis, but I could not find any example how to do that. Here are some examples of how to manipulate the chart, but not how to change the axis color.

Does anyone of you know how to do that?

Thanks in advance,

enne

Answers


In part from here, the following Javascript will change the fill color for your axes:

 $.each(chart.axis[0].text.items, function(i, label) {
   label.attr({'fill': '#D6D6D6'});
 });

 $.each(chart.axis[1].text.items, function(i, label) {
   label.attr({'fill': '#D6D6D6'});
 });

Enjoy!


After a long time of research I couldn't find a possibility to change the axis-colour. I decided to generate my own diagram with rapahel, which is easier than I thought. Fortunately, the documentation of raphael is good enough to create a diagram in an adequate period of time.


Need Your Help

Django--Should I use Through Table to Structure M2M relationship

django django-models many-to-many

I want to represent clubs which have multiple members (each member can also join multiple clubs).

Lob locator on new row in a trigger

oracle plsql triggers blob

I'm trying to create a trigger which copies a blob from table B into the newly create row in table A. However, I get the error ORA-22275 (Invalid lob locator specified) when the trigger is supposed...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.