Jump to content


How do you set line's thickness?

lineThickness

  • Please log in to reply
5 replies to this topic

#1 cristiscu

cristiscu

    Junior Member

  • Members
  • PipPip
  • 10 posts

Posted 21 March 2017 - 02:39 AM

I tried "options.dataSource.dataset[0].lineThickness = 5;", but it does not seem to work. I still get a series with 1px line. Same for "thickness".

 

Regards,

-Cristian



#2 Ayan Bhadury

Ayan Bhadury

    Advanced Member

  • Members
  • PipPipPipPip
  • 94 posts
  • LocationIndia

Posted 21 March 2017 - 05:19 AM

Hi,
 
To set line's thickness you can use "lineThickness" attribute at the chart level and set it as the number of pixels required.
 
Also if you want to change it dynamically you can use FusionCharts setChartAttribute api method and set the line thickness.
 
For details regarding setChartAttribute please refer this link http://www.fusioncha...tChartAttribute
 
For further reference please check this sample fiddle link using setChartAttribute api method  http://jsfiddle.net/...uryfc/fboruqhb/

Thanks, 
Ayan Bhadury

#3 cristiscu

cristiscu

    Junior Member

  • Members
  • PipPip
  • 10 posts

Posted 21 March 2017 - 05:50 AM

Thanks, Ayan, it looks great.



#4 Ayan Bhadury

Ayan Bhadury

    Advanced Member

  • Members
  • PipPipPipPip
  • 94 posts
  • LocationIndia

Posted 21 March 2017 - 05:54 AM

Welcome. :)


Thanks, 
Ayan Bhadury

#5 cristiscu

cristiscu

    Junior Member

  • Members
  • PipPip
  • 10 posts

Posted 21 March 2017 - 05:42 PM

I'll bother with another related question, if you don't mind please...

 

What about the line thickness in a candlestick chart, for the little stick going out of each candle? I tried with lineThickness, or even borderWidth, and no luck so far.

 

(It worked fine setting the bear/bullFillColor and bear/bullBorderColor)

 

Thanks,

Cristian 



#6 Ayan Bhadury

Ayan Bhadury

    Advanced Member

  • Members
  • PipPipPipPip
  • 94 posts
  • LocationIndia

Posted 23 March 2017 - 07:08 AM

Hi,
 
Unfortunately, there is no way to set thickness of the little stick out of each candle. However you can change the candle to line and increase its thickness using "plotLineThickness" attribute at the chart level.
 
Please refer this sample fiddle http://jsfiddle.net/...uryfc/fqfnj5vp/

Thanks, 
Ayan Bhadury