score:1
Accepted answer
Example how to implement Highcharts Stock in version 3.0.0 Vue.js.
import { createApp } from "vue";
import Highcharts from "highcharts";
import Stock from "highcharts/modules/stock";
import HighchartsVue from "highcharts-vue";
import App from "./App.vue";
Stock(Highcharts);
const app = createApp(App);
app.use(HighchartsVue);
app.mount("#app");
<template>
<Chart :options="chartOptions" :constructorType="'stockChart'" />
</template>
<script>
import { Chart } from "highcharts-vue";
export default {
name: "App",
components: {
Chart,
},
data() {
return {
chartOptions: {
series: [
{
data: [5, 2, 3], // sample data
},
],
},
};
},
};
</script>
Demo: https://codesandbox.io/s/vue3-highcharts-example-forked-j9nw9t
Source: stackoverflow.com
Related Query
- Strange character in the Highstock source code
- HTML table as data source for highstock charts using highcharts
- HighCharts.js - Trying to import highstock
- Highstock highcharts irregular data gets wrong x-scale
- how to import highcharts with webpack and babel
- Highcharts saying undefined is not a function when trying to add a new chart
- Trying to set a minimum height on bars in HighStock
- How to get series's id in Highcharts / Highstock
- Import Highcharts and highcharts-more (AngularJS 1.5 + TypeScript + webpack)
- How to change axis label size when exporting in Highcharts / Highstock
- how to import highcharts offline-exporting in typescript
- Highcharts / Highstock step line without vertical "transition" lines?
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Global configuration with common code and unique data & Headings
- HighStock HighCharts Setting Flag on Click Event
- I'm trying to create a timeseries chart having stacked columns in HighCharts
- highcharts / highstock column doesn't show all datalabels
- Difference between highcharts and highstock during real time trace and xAxis with max value
- Using highcharts & highstock together on same page
- HighCharts Stock Chart error code 18
- Highcharts / Highstock step line with gaps?
- highcharts change rendered image source on click
- Highcharts - Highstock "inputEditDataFormat" breaking input
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- Highstock / Highcharts dataGrouping points outside of viewport / canvas
- Maximum call stack size exceeded when trying to access highcharts via selenium
- Use of DotNet HighCharts dll to make charts in code behind
- How to edit tooltip in Highcharts C# code
- what means ${demo.css} in example files of highcharts ? That piece of code seems to be literal
More Query from same tag
- HighCharts: Unexpected value NaN parsing y attribute
- Transfer Multiple Textbox value into Pie Chart slices(Percentage)
- having issue when updation Highcharts object using highcharts-ng directive
- Multiple pie-charts in the same chart with HighCharts
- Highcharts column color
- How to position a Highcharts title on the right of the chart?
- Highcharts | Making multiple y axis scales
- Highcharts: How to access range values in formatter for "columnrange" type?
- What should I do to make the x-axis of a graph bold with Highchart?
- HighChart : plot line and plot click event
- Problem loading an array initialized in another script on webpage
- rcharts highcharts plotLines
- How can I combine highcharts with different but similar x-axis categories?
- How to delete and add new contents in html file by python
- Resize height with Highcharts
- HighCharts event on column category name click
- How to convert an object array DataTable recognizes to something Highcharts recognizes?
- Highstock navigator handles options do not work
- show tooltip for each point of highcharts network graph in Angular
- Invalid dates in Highcharts with data loaded by JSON
- Highcharts Series from AJAX
- HighCharts Data and Legend Ordering
- change highcharts detetime label
- Highcharts loading data and not plotting
- Highchart - Angular 9: How to export all charts into single pdf?
- Highcharts - cylinder Chart
- PHP - getting real time data from the database
- Unable to set colors in Highstock charts
- Highcharts JSON load issue
- Highchart does not load data from hidden input when using .val