Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Today's date as well as wrong start and end time being rendered on chart in some scenarios #334

Open
Sam02580 opened this issue Jan 5, 2021 · 1 comment

Comments

@Sam02580
Copy link

Sam02580 commented Jan 5, 2021

The start date and end date for bars is showing wrong.

This issue generally occurs only with large time frames (around 2 - 4 years).

Even the current date is being highlighted at wrong place.

Attaching the sample json for reference.

image

As we can see in the image, the line for today's date is on 9th jan, where today is 5th jan.

Any help would be really appreciated.

The json is as follow :

[

{
'pID': 4,
'pName': 'Units',
'pClass': 'green',
'pLink': '',
'pMile': 0,
'pRes': '',
'pGroup': 1,
'pParent': 0,
'pOpen': 1,
'pCaption': '',
'pNotes': ''
},
{
'pID': 41,
'pName': 'Unit 1',
'pLink': '',
'pMile': 0,
'pRes': '',
'pGroup': 2,
'pParent': 4,
'pOpen': 1,
'pCaption': '',
'pNotes': ''
},
{
'pID': 42,
'pName': 'Unit 2',
'pLink': '',
'pMile': 0,
'pRes': '',
'pGroup': 2,
'pParent': 4,
'pOpen': 1,
'pCaption': '',
'pNotes': ''
},
{
'pID': 43,
'pName': 'Unit 3',
'pLink': '',
'pMile': 0,
'pRes': '',
'pGroup': 2,
'pParent': 4,
'pOpen': 1,
'pCaption': '',
'pNotes': ''
},
{
'pID': 411,
'pName': 'Dummy 1',
'pStart': '2018-12-05',
'pEnd': '2022-12-29',
'pClass': 'green',
'pLink': '',
'pMile': 0,
'pRes': '',
'pGroup': 0,
'pParent': 41,
'pOpen': 0,
'pCaption': '',
'pNotes': ''
},
{
'pID': 421,
'pName': 'Dummy 2',
'pStart': '2020-12-07',
'pEnd': '2020-12-28',
'pClass': 'green',
'pLink': '',
'pMile': 0,
'pRes': '',
'pGroup': 0,
'pParent': 42,
'pOpen': 0,
'pCaption': '',
'pNotes': ''
},
{
'pID': 431,
'pName': 'Dummy 3',
'pStart': '2020-12-13',
'pEnd': '2021-01-05',
'pClass': 'green',
'pLink': '',
'pMile': 0,
'pRes': '',
'pGroup': 0,
'pParent': 43,
'pOpen': 0,
'pCaption': '',
'pNotes': ''
}

]

@marcomiani
Copy link

on windows I see this happen with font scaling or browser zoom different than 100% or 200%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants