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.

Problem with threshold plugin

See original GitHub issue

Hi!

I’m using chartist through vue-chartist. The point is that I want to use the threshold plugin, but if I install it and call into a chart, it said to me Chartist is not defined, which is correct, because chartist is in Vue.chartist

How can I set Chartist value called into the plugin to point to Vue-chartist without modify the threshold plugin?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fyyyyycommented, Apr 18, 2017

Vue.chartist assignment isnt required imo. You just need to define Chartist on the window object before importing the plugin

You can do this in your main/index.js

import VueChartist from 'vue-chartist';

window.Chartist = Chartist;
require('chartist-plugin-pointlabels');

Vue.use(VueChartist)

If you want to use it in a subcomponent, you can import Chartist

<script>
import _ from 'lodash';
import Chartist from 'chartist';

export default {
  props: [
  ],
  data() {
    return {
      chartOptions: {
        plugins: [
          Chartist.plugins.legend({
            legendNames: [...,
          }),
0reactions
Mathieu-Rcommented, Nov 16, 2017

It doesn’t work for me with threshold plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Problems with thold plugin - Cacti Forums
Hi, i'm having serious problems with thold plugin. It just doesn't work. My cacti install version is 0.8.7g with latest stable PA.
Read more >
Thold is broken in current Cacti database · Issue #509 - GitHub
Describe the bug. Thold interface speed current value is wrong and is negative in value. To Reproduce Steps to reproduce the behavior:
Read more >
Problem with the Match Threshold | WordPress.org
The Match Threshold works, but I have two categories that don't work well with your instrument; – Game News requires Match Threshold to...
Read more >
Issues with Threshold Color macro - Image.sc Forum
Hi to everyone, I want to use the “Threshold Color” function, which works pretty fine for me when I use it manually within...
Read more >
AdaptiveThreshold --- ImageJ plugin - Google Sites
Adaptive threshold overcomes the limitation of conventional threshold method when the image background or the feature intensities are not homogeneous. Let's ...
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