question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add tooltip plugin

See original GitHub issue

Hi guys,

¿How can i add tooltip plugin to vue-chartist?

I try with:

import chartist from 'vue-chartist'
import chartist_tooltip from 'chartist-plugin-tooltips'

vue.use(chartist,{
	plugins: [
	     chartist_tooltip
	],
})

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
funami-devcommented, Sep 25, 2018

@50l3r that’s the same with me. https://www.npmjs.com/package/chartist-plugin-tooltip works. (the package without an s at the end)

If you dont want the jquery version: https://github.com/tmmdata/chartist-plugin-tooltip/issues/152#issuecomment-395361512

or in vue components Imports

import * as ChartistTooltips from 'chartist-plugin-tooltips';

Options

plugins: [this.$chartist.plugins.tooltip()]
2reactions
hitautodestructcommented, Jul 11, 2018

@50l3r The plugin definition goes into your options configuration per component. You would have to import it in the vue component like you did and then set it up like so:

<template>
    <chartist :data="chart_data" :options="chart_options" type="Line" />
</template>
<script>
import chartist_tooltip from 'chartist-plugin-tooltips'

export default {
  data () {
    return {
      chart_options: {
        plugins: [ chartist_tooltip() ]
      }
    }
  }
}
</script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Wordpress Tooltips – WordPress plugin
WordPress Tooltip is a simple & quick & light & powerful jQuery tooltip solution, it is very easy to use, you can easily...
Read more >
How to Add a WordPress Tooltip (2 Ways: Free Plugin or ...
Want to add a WordPress tooltip to your site? Read this post for two simple methods - a free tooltip plugin or your...
Read more >
How to Add Tooltips in Your WordPress Posts and Pages
The first thing you need to do is install and activate the WordPress Tooltips plugin. To learn more, see our step by step...
Read more >
Add Tooltips in WordPress (The Easy Way)
Step 1. Create a WordPress Form · Step 2. Install the Shortcodes Ultimate Plugin · Step 3: Get Your Tooltip Shortcode · Step...
Read more >
Tooltips · Bootstrap
The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element. Trigger the tooltip via JavaScript:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found