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

Using global.timezoneOffset to set a Time Zone with Highchart #50

Closed
Phazz opened this issue Nov 14, 2013 · 4 comments
Closed

Using global.timezoneOffset to set a Time Zone with Highchart #50

Phazz opened this issue Nov 14, 2013 · 4 comments

Comments

@Phazz
Copy link

Phazz commented Nov 14, 2013

Thanks for the useful library.
I am looking to use this feature of Highchart:
http://highcharts.uservoice.com/forums/55896-general/suggestions/2542204-set-timezone

See the example:
http://jsfiddle.net/highcharts/y6Q7p/

What would be the best way to use this with chartkick ?

Thanks again,

@ankane
Copy link
Owner

ankane commented Nov 16, 2013

You can add it after you include Highcharts.

<%= javascript_include_tag "path/to/highcharts", "chartkick" %>
<script>
    Highcharts.setOptions({
        global: {
            timezoneOffset: 5 * 60
        }
    });
</script>

@ankane
Copy link
Owner

ankane commented Jan 10, 2014

Did this work for you?

@Phazz
Copy link
Author

Phazz commented Jan 10, 2014

Yes that works.
Thanks for your time @ankane.

@Phazz Phazz closed this as completed Jan 10, 2014
@yush93
Copy link

yush93 commented May 29, 2018

What is the equivalent for rails?

@lock lock bot locked as resolved and limited conversation to collaborators Dec 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants