View unanswered posts | View active topics It is currently Sun Apr 14, 2024 2:12 am



Reply to topic  [ 1 post ] 
Want to set Abscissa series from CSV column 
Author Message
New pChart user
New pChart user

Joined: Sat Apr 21, 2012 5:47 pm
Posts: 1
Post Want to set Abscissa series from CSV column
Greetings,
I'm setting up pChart to read from a CSV file and create a stacked bar chart. The first column is a series of dates, which I want to be set as the X-Axis (i.e. the abscissa).

I found that ImportFromCSV in v1.6 of pChart allowed you to do this, but there doesn't appear to be an equivalent argument in version 2.1.3.

From the examples I've read, I know that it is quite straight forward to define a series of static values and set those as the abscissa. However, that is only appropriate for data that has a fixed number of rows (or bars). My data, on the other hand, represents multiple monthly totals associated with my work, and so every month the abscissa needs to be longer.

So, I'm asking for a way to have a dynamic abscissa read from the contents of a CSV file, please?!

My intermediate solution has been to skip the first column via ImportFromCSV. My current results can be seen at http://davidgilson.co.uk/bar.php and the data file I'm working from is http://www.davidgilson.co.uk/pub-monthly.csv (this file regularly changes, as per my need for a dynamic abscissa).


Sat Apr 21, 2012 5:59 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron