View unanswered posts | View active topics It is currently Mon Apr 29, 2024 7:17 am



Reply to topic  [ 3 posts ] 
spline / line graph line styling 
Author Message
New pChart user
New pChart user

Joined: Thu May 31, 2012 8:58 pm
Posts: 2
Post spline / line graph line styling
hello
im trying to make a line graph with 2px wide lines and 5 pixel dots like here
http://www.pchart.net/images/SmoothCurves.png

i have it all setup im just missing the property to make the lines 2px wide, i can't seem to find proper doc on it

thanks!


Thu May 31, 2012 9:02 pm
Profile
Experienced pChart user
Experienced pChart user

Joined: Tue Aug 02, 2011 11:49 pm
Posts: 34
Post Re: spline / line graph line styling
which drawing function have you used?

have you tried "Weight"=>2 in the format array like for drawLine? http://wiki.pchart.net/doc.draw.line.html

or setSerieWeight("your_serie",2); like for drawLineChart? http://wiki.pchart.net/doc.chart.drawlinechart.html

could be that it works for drawSpline or drawSplineChart too


you could use drawPlotChart with "PlotSize"=>5 to get your dots: http://wiki.pchart.net/doc.chart.drawplotchart.html

dotted lines are set by TICKS options: setSerieTicks("your_serie",4); http://wiki.pchart.net/doc.chart.drawsplinechart.html


you can combine multiple drawing functions to be rendered into one single chart-image
start with the lines and overlay the dots


Thu May 31, 2012 10:28 pm
Profile
New pChart user
New pChart user

Joined: Thu May 31, 2012 8:58 pm
Posts: 2
Post Re: spline / line graph line styling
thank you for the reply

setSerieWeight("your_serie",1); worked perfectly

thanks again


Fri Jun 01, 2012 2:39 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 25 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: