Multiple Log-Log Plots

0 views
Skip to first unread message

Lefty

unread,
May 25, 2008, 12:57:45 PM5/25/08
to svgkit
First off, I really like this project, and it seems that you have put
a lot of effort into it already.

I have been looking at using your code to generate a loglog plot of
data I receive in a CSV file. There are a number of channels of data.
I wrote a simple script to read the CSV, parse the headers, and
generate a listbox. I can then select the channel to plot and use your
code to generate the SVG plot. It works quite well. I can also select
a different channel and update the plot to the new data.

What I would like to do next is be able to view multiple channels in
the same plot. It looks like the linear plots already contain the code
to do this, but it does not work for loglog plots.

I am not very familiar with javascript (I mostly do Matlab scripting).
I have begun to try to go through the code to figure out how to add
this functionality, but so far I haven't made much progress.

Would it be possible to point me in the right direction as to the
files or functions which would require modification to implement this
feature. Also, in you estimation do you feel this is a difficult
feature to add, or maybe just requires some time to generate the code
similar to the linear plot code.

Thanks.

Lefty

unread,
Jun 1, 2008, 5:35:24 PM6/1/08
to svgkit
Actually I answered my own question. The functionality was already
built in. I just had to use a loop to call multiple plotLine functions
(as opposed to the loglog function so I could plot each channel in a
different color). Then set plot.xScale.interpolation and
plot.yScale.interpolation to 'log'.
Reply all
Reply to author
Forward
0 new messages