How to use the vega-tooltip.vegaLite function in vega-tooltip

To help you get started, we’ve selected a few vega-tooltip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Datawheel / mondrian-rest-ui / src / components / Chart / Chart.js View on Github external
(error, result) => {
                if (result)
                    vlTooltip(result.view, vls, {});
            }
        );
github Kitware / minerva / web_external / views / widgets / InfovizWidget.js View on Github external
type: 'quantitative',
                    axis: {
                        labels: !scaledPropertyForY
                    }
                }
            },
            height: $chartContainer.height() - 30,
            autosize: { type: 'fit-y', resize: true, contains: 'padding' }
        };

        var view = new vega.View(vega.parse(vl.compile(spec).spec))
            .renderer('svg')
            .initialize($chartContainer[0])
            .run();

        vegaTooltip.vegaLite(view, spec, {
            showAllFields: false,
            fields: [{
                field: scaledPropertyForY || this.propertyForY
            }, {
                field: x
            }]
        });

        this.vegaView = view;
        return this;
    },

vega-tooltip

A tooltip plugin for Vega-Lite and Vega visualizations.

BSD-3-Clause
Latest version published 9 months ago

Package Health Score

82 / 100
Full package analysis