No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Add chartJS to Quasar

    Show & Tell
    chartjs
    6
    6
    9263
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Martin
      Martin last edited by Martin

      npm install vue-chartjs

      1.Chart component (.js not .vue)

      0_1476777013409_img2361.jpg

      2.Parent component

      0_1476777003244_img2362.jpg

      3.Result

      0_1476777019880_img2360.jpg

      1 Reply Last reply Reply Quote 5
      • rstoenescu
        rstoenescu Admin last edited by

        Nice work! Thanks for sharing this!

        patryckx 1 Reply Last reply Reply Quote 1
        • Gianni
          Gianni last edited by Gianni

          this slightly changed with the new VueJS Version :

          commitChart.js :

          import {
            Bar
          }
          from 'vue-chartjs'
          
          export default {
            extends: Bar,
            props: ['data'],
            mounted: function () {
              this.renderChart(this.data, this.options)
            },
            data () {
              return {
                options: {
                  title: {
                    display: true,
                    text: 'some title'
                  }
                }
              }
            }
          }
          

          THe rest remains the same.

          1 Reply Last reply Reply Quote 4
          • patryckx
            patryckx @rstoenescu last edited by

            @rstoenescu perfect!

            1 Reply Last reply Reply Quote 0
            • M
              MusicForMellons last edited by

              Would be cool have this one ‘setup’ as well:
              https://github.com/antvis/f2
              see also:
              https://medium.com/@SimaZwx/https-medium-com-simazwx-introducing-f2-c44fb4e74c2d

              D 1 Reply Last reply Reply Quote 1
              • D
                Dirk @MusicForMellons last edited by

                @musicformellons Take a look at https://github.com/patrickmonteiro/quasar-f2-charts

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post