Problem using increment Month

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
Menant.D
Newbie
Newbie
Posts: 19
Joined: Mon Jun 06, 2016 12:00 am

Problem using increment Month

Post by Menant.D » Sun May 07, 2017 7:13 am

Hello,

I have problem with graphic with increment month, the date for each bar is not correct.
The increment seems fixed of 30 days.
If I chose automatic increment, it doesn't work anymore.
Attachments
ProjectAxisIncrementMonth.zip
(5.38 KiB) Downloaded 1357 times
LabelBottomAxisIncrementAutomatique.png
LabelBottomAxisIncrementAutomatique.png (16.55 KiB) Viewed 19278 times
LabelBottomAxisIncrementMonth.png
LabelBottomAxisIncrementMonth.png (50.3 KiB) Viewed 19279 times

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem using increment Month

Post by Yeray » Mon May 08, 2017 9:53 am

Hello,

The VCL project you've attached gives me a slightly different Javascript output for me:
TestOneMonthIncrement.zip
(1.35 KiB) Downloaded 1387 times
chrome_2017-05-08_11-48-07.png
chrome_2017-05-08_11-48-07.png (66.25 KiB) Viewed 19278 times
So I assume you modified it to get that result.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Menant.D
Newbie
Newbie
Posts: 19
Joined: Mon Jun 06, 2016 12:00 am

Re: Problem using increment Month

Post by Menant.D » Tue May 09, 2017 7:17 am

Yes, i've just changed the date format.

Menant.D
Newbie
Newbie
Posts: 19
Joined: Mon Jun 06, 2016 12:00 am

Re: Problem using increment Month

Post by Menant.D » Tue May 09, 2017 7:44 am

It's there a solution for this? It's very important and urgent for us.

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem using increment Month

Post by Yeray » Tue May 09, 2017 8:22 am

Hello,

You could reset the x values and the increment as follows:

Code: Select all

  for (var i=0; i<Series1.data.x.length; i++) {
      Series1.data.x[i] = i;
  }

  Chart1.axes.bottom.increment=1;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply