Recent

Author Topic: Shift data on TChart  (Read 322 times)

id_ruben

  • Newbie
  • Posts: 4
Shift data on TChart
« on: June 24, 2020, 07:40:19 am »
hi,
chart1 with X maximum 7 (0 to 6) displays data from arrays with
Y: 0, 2, 1, 4, 2, 3, 1
X: 0, 1, 2, 3, 4, 5, 6

data array become to
Y: 0, 2, 1, 4, 2, 3, 1, 4
X: 0, 1, 2, 3, 4, 5, 6, 7
the data from the array displayed on tchar is
Y: 2, 1, 4, 2, 3, 1, 4
X: 0, 1, 2, 3, 4, 5, 6

Furthermore,
  data array become to
Y: 0, 2, 1, 4, 2, 3, 1, 4, 3
X: 0, 1, 2, 3, 4, 5, 6, 7, 8
the data from the array displayed on tchar is
Y: 1, 4, 2, 3, 1, 4, 3
X: 0, 1, 2, 3, 4, 5, 6

How to shift data  on the chart?
How to display data label on TChart

Thank
« Last Edit: June 24, 2020, 07:44:54 am by id_ruben »

wp

  • Hero Member
  • *****
  • Posts: 7552
Re: Shift data on TChart
« Reply #1 on: June 24, 2020, 09:40:01 am »
I cannot give specific advice because I don't know what you are doing. Please compare with the attached project and see what is different.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018