8000 Passing values to tooltipValueLookups · Issue #33 · htmlwidgets/sparkline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Passing values to tooltipValueLookups #33
Open
@kpagacz

Description

@kpagacz

I am currently having issues with passing values to tooltipValueLookups. What should be the format of this argument for it to work?

I call sparkline with the following:

sparkline::sparkline(c(1,2,3), type="bar", tooltipFormat = "{{offset:table}} - {{value}}", chartRangeMax=5, tooltipValueLookups="'table': {0:'a', 1:'b', 2:'c'}")

but the chart still shows tooltips in the format of: offset - value.
How can I make the sparkline show {{offset:table}} - {{value}}?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0