Getting Started

... April 2, 2021 14:49 Less than 1 minute

# Getting Started

UI component to display round gauges such as speedometer, thermometer, barometer or tachometer.

# Install

npm i vue-speed-meter
1

# Add to Project

# Global

// main.js
import VueSpeedMeter from "vue-speed-meter";
Vue.component("vue-speed-meter", VueSpeedMeter);
1
2
3

# Local Usage

<template>
  <div>
    <VueSpeedMeter
      :customStyle="customStyle"
      :customCurrentValue="customCurrentValue"
    />
  </div>
</template>

<script>
import VueSpeedMeter from "vue-speed-meter";

export default {
  name: "Component",
  components: {
    VueSpeedMeter,
  },
  data: function() {
    return {
      customStyle: {
        size: 500,
      },
      customCurrentValue: 20,
    };
  },
 }
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# CDN

The component is accessible on Content Delivery Network (CDN), so it can be included in websites.

<script src="https://unpkg.com/vue-speed-meter"></script>
1
Last update: April 2, 2021 14:49