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

Tooltips do not work #49

Open
akrf opened this issue Feb 27, 2015 · 3 comments
Open

Tooltips do not work #49

akrf opened this issue Feb 27, 2015 · 3 comments

Comments

@akrf
Copy link

akrf commented Feb 27, 2015

I am trying to define the tooltips for a chart like this:

    ...
    extra = {"tooltip": {"y_start": "foo", "y_end": "bar"}}
    chartdata = {
            'x': xdata,
            'name': 'series 1', 'y': ydata, 'extra': extra,
            }
    context['chart'] = {
        'type': "lineChart",
        'container': 'chart_container',
        'data': chartdata,
        'extra': {
            'x_is_date': True,
            'x_axis_format': "%Y-%m-%d",
            'tag_script_js': True,
            'jquery_on_ready': False,
        }
    }

Based on the documentation, I expect the above to result in a tooltip like "foo $y-value bar" (ie, if the y-value was 10, "foo 10 bar"). This does not work. Instead the tooltip stays at the default value of "$y-value at $x-value".

How can I define a format for the tooltip?

@salilpa
Copy link

salilpa commented Jul 2, 2015

I am also facing a similar issue

@portante
Copy link

portante commented Jul 6, 2015

@akrf, @salilpa: What version of nvd3 is being used?

@evansnj
Copy link

evansnj commented Jul 21, 2015

I ran into the same problem with nvd3 version 1.8.1. Going back to 1.7.1 resolves the problem for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants