Loading...

How to use it ?

  <template>
  <MazPlotly
    :data="data"
    :layout="layout"
    :display-mode-bar="false"
  />
</template>

<script>
  import { MazPlotly } from 'maz-ui'
  export default {
    components: { MazPlotly }
    data () {
      return {
        data: [{
          x: [0, 1, 2, 3, 4, 5],
          y: [1.5, 1, 1.3, 0.7, 0.8, 0.9],
          type: 'scatter'
        },{
          x: [0, 1, 2, 3, 4, 5],
          y: [1, 0.5, 0.7, -1.2, 0.3, 0.4],
          type: 'bar'
        }],
        layout:{
          title: 'Line Chart and a Bar Chart'
        }
      }
    }
  }
</script>