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

Multiple series rendered differently in Chrome/Safari and Firefox #141

Closed
NiklasGronblom opened this issue Oct 29, 2014 · 5 comments
Closed

Comments

@NiklasGronblom
Copy link

The following data series are rendered correctly (IMHO) using Google Charts in Chrome and Safari , but Firefox produces a chart with the wrong order on the horizontal axis.

[{:name=>"PhD theses",
  :data=>
   {1978=>1,
    1996=>1,
    1998=>1,
    1999=>3,
    2000=>3,
    2001=>1,
    2002=>1,
    2003=>1,
    2004=>4,
    2005=>4,
    2006=>6,
    2007=>6,
    2008=>3,
    2009=>5,
    2010=>3,
    2011=>5,
    2012=>4,
    2013=>7,
    2014=>10}},
 {:name=>"Masters theses",
  :data=>
   {1982=>1,
    1983=>2,
    1984=>6,
    1985=>5,
    1986=>4,
    1987=>2,
    1988=>11,
    1989=>14,
    1990=>18,
    1991=>8,
    1992=>8,
    1993=>12,
    1994=>4,
    1995=>7,
    1996=>12,
    1997=>6,
    1998=>8,
    1999=>7,
    2000=>12,
    2001=>20,
    2002=>18,
    2003=>23,
    2004=>39,
    2005=>36,
    2006=>46,
    2007=>37,
    2008=>59,
    2009=>36,
    2010=>30,
    2011=>22,
    2012=>33,
    2013=>26,
    2014=>12}}]

Chrome

screenshot 2014-10-29 19 02 13

Safari

screenshot 2014-10-29 19 08 54

Firefox

screenshot 2014-10-29 19 02 38

Is this a browser issue, Google Charts issue, or a chartkick issue? I would want Firefox to produce the same chart as Chrome and Safari.

@NiklasGronblom
Copy link
Author

Using Highcharts results in a similar phenomenon.

@jaimerson
Copy link

Any news on this?

@rjrobinson
Copy link

Also getting this error

@ankane
Copy link
Owner

ankane commented Jan 7, 2017

With the latest version of Chartkick, it looks like they all render the same (as Firefox does in your example). This is due to lack of support for a numeric column type. I added this as a todo in ankane/chartkick.js#78.

@ankane
Copy link
Owner

ankane commented Aug 7, 2018

Added in ankane/chartkick.js#78

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

No branches or pull requests

4 participants