Hi All!
I have created a combined chart of time series and vertical bar chart that treats as a price and volume chart. It can plot the chart but I found that the bar chart of each value is shift to the right with a margin. That means when cutting a line vertically through a value in the time series, the centre of the bar chart is shift to the right.....Is there any problem in my code?!
Thx!
Gloria
Combined chart problem
Re: Combined chart problem
Hi Gloria,
In the TimeSeriesCollection class, there is a setPosition(...) method. This controls whether the x-value is taken from the start, middle or end of its time period. You should probably set this to middle so that it corresponds with the middle of the bars.
Regards,
Dave Gilbert
In the TimeSeriesCollection class, there is a setPosition(...) method. This controls whether the x-value is taken from the start, middle or end of its time period. You should probably set this to middle so that it corresponds with the middle of the bars.
Regards,
Dave Gilbert
Re: Combined chart problem
Hi Gilbert,
I can change my desired x-value position after ur guide! Thx!
Gloria
I can change my desired x-value position after ur guide! Thx!
Gloria