Giter VIP home page Giter VIP logo

pygal-toggle-graphs's People

Contributors

s3rvac avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pygal-toggle-graphs's Issues

Tooltip displaying 'None' for some data points in secondary Y-axis lines

So I have secondary Y-axis enabled (i.e. pygal.add('SomeLabel', data_point, secondary=True)) and some of the tooltips for certain data points are showing up as 'None' when you hover over them.

This doesn't happen when I add data points with the default Y-axis setting. I am using pygal-toggle-graphs as per your 'Usage' section in the md file. Do you know what is going wrong here?

Thanks for extending pygal with this very sorely needed functionality by the way.

hoverlabelnone1
hoverlabelnone2

Doesn't seem to work with Pygal 1.6.1

I should note I haven't grabbed an older version of Pygal to try this with, but when I use your javascript (and thanks, by the way, for making this!), I can't toggle lines. Maybe it's relevant that I'm using a DateY graph?

custom_style = Style(
        background='transparent',
        plot_background='transparent',
        foreground='#000000',
        foreground_light='#585858',
        foreground_dark='#383838',
        opacity='.6',
        opacity_hover='.9',
        transition='400ms ease-in',
        colors=('#FF6600', '#9900CC', '#FF66FF'))
    js = [
      'http://kozea.github.com/pygal.js/javascripts/svg.jquery.js',     # Original
      'http://kozea.github.com/pygal.js/javascripts/pygal-tooltips.js', # Original
      'http://rawgit.com/s3rvac/pygal-toggle-graphs/master/pygal-toggle-graphs.js'
        ]

    datey = pygal.DateY(x_label_rotation=20,
                        title = 'Stuff',
                        x_title = 'Datetime',
                        include_x_axis = True,
                        print_values = False,
                        js = js,
                        style = custom_style)

Not working in Chrome 40.0.2214.91 m

Hi!

The toggle idea is fantastic! Many thanks! I haven't encountered a problem with Firefox nor Opera. So far only Chrome has let me down.

Chrome 40.0.2214.91 m
Windows 7 64 bit

Thanks!

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.