Skip to content

Installation with vue-chartjs not working? #5

Description

@connecteev

@nagix thanks for the repo, I was thnking of using roughViz earlier but this plugin will let me move completely to chart.js

The problem is with the installation / integration - I'm using chartjs with Vue (used https://github.com/apertureless/vue-chartjs as a starting point, see my code here https://github.com/connecteev/test-chartjs-plugin-rough/)

I then tried to integrate https://github.com/nagix/chartjs-plugin-rough but it does not work.
My diff here: connecteev/test-chartjs-plugin-rough@4004323

This is the error I am seeing, and the bar graph is not loading if I enable /nagix/chartjs-plugin-rough

Any idea how to get this to work when using vue?

Uncaught TypeError: rough.canvas is not a function
    at ChartElement.draw (chartjs-plugin-rough.js?1686:966)
    at Object.draw (Chart.js?30ef:7231)
    at Chart.draw (Chart.js?30ef:9825)
    at Chart.render (Chart.js?30ef:9782)
    at Object.callback (Chart.js?30ef:2204)
    at Object.advance (Chart.js?30ef:3528)
    at Object.startDigest (Chart.js?30ef:3501)
    at eval (Chart.js?30ef:3490)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions