Git Product home page Git Product logo

Comments (6)

galmok avatar galmok commented on May 5, 2024

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.

liangde-chen avatar liangde-chen commented on May 5, 2024

Vote for same issue.

from gwt-charts.

prabal77 avatar prabal77 commented on May 5, 2024

same issue. Voting for this.

from gwt-charts.

codefocus avatar codefocus commented on May 5, 2024

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.

jonmitten avatar jonmitten commented on May 5, 2024

Same issue here. Vote for this as well. hAxis should have timezone specification support.

from gwt-charts.

gorghino avatar gorghino commented on May 5, 2024

Same, even if I'm not hopeful. No commits since 2016..

from gwt-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.