Comments (6)
I have pretty much the same problem. I try to have the x-axis show date in UTC format, but it isn't possible to set the timezone on the x-axis (or any axis for that matter). This means if you have data in UTC timezone, e.g. "2017-01-19T09:00:00Z", you can have a formatter use "{ pattern: "yyyy-MM-dd HH:mm:ss 'UTC'", timeZone: 0 }" and have the popup show the correct timestamp "2017-01-19 09:00:00 UTC", but on the hAxis, you can only set the format, not the timezone. This means all dates on the hAxis are converted to local time and at best, you can have it attach the timezone like this: format: 'yyyy-MM-dd HH:mm:ss Z'. The result would be (in Denmark, UTC+1 in the winter): 2017-01-19 10:00:00 +0100. While technical correct, this isn't what I want (I want UTC timezone).
Currently, the only solution seems to be to convert the original timestamp to localtime this way: "2017-01-19T09:00:00Z" -> "2017-01-19 09:00:00". This would help, but still be wrong during the daylight saving time switches.
Or manually handle the hAxis ticks and labels, i.e. reinvent the algorithm to select ticks and then put on the correct labels.
from gwt-charts.
Vote for same issue.
from gwt-charts.
same issue. Voting for this.
from gwt-charts.
Running into this as well.
Data is shown in two timezones: The correct one (configured to EST) in the hover text, and the incorrect one (browser timezone) on the hAxis tick labels.
from gwt-charts.
Same issue here. Vote for this as well. hAxis should have timezone specification support.
from gwt-charts.
Same, even if I'm not hopeful. No commits since 2016..
from gwt-charts.
Related Issues (20)
- Setting the CandlestickChartOptions has no effect HOT 2
- dev mode 2.6 crashes HOT 1
- No support for changing size of BubbleChart points HOT 1
- Is this library still supported ? HOT 1
- Update library to the June 25, 2014 version HOT 1
- De-Selecting and redrawing in SelectHandler Callback causes selection to be re-selected HOT 1
- Missing "MotionChart" ChartPackage HOT 2
- Getting selections on MAP HOT 2
- colorAxis Not Working for Geochart HOT 2
- getImageURI() HOT 1
- ChartLayoutInterface should accept doubles instead of ints
- ApiLoader is not a singleton HOT 2
- Getting the selected value from a DateRangeFilter HOT 8
- DataView.toDataTable() is missing a return
- Fix line endings and redundant whitespaces HOT 1
- ChartLoader fails if multiple charts are being placed on a page. HOT 5
- RoleType: Style role type missing. HOT 1
- ColumnFunction broken in DataViewColumn
- gwt-charts is not updated for new google api loader HOT 2
- how to draw multiple charts in a single flex table using GWT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-charts.