score:1
Accepted answer
The answer is very simple. The reason is that the Vue defines all component data only after returning a whole data
object, so you should not use this
keyword to refer other component data within data
definition. In order to make it work correctly, you should keep the plotData
within component's data
, but move the config
into the computed properties. Take a look on the code below:
props: {
options: {
type: Object,
required: true
}
},
data: function() {
return {
plotData: [[1,3],[2,7],[3,9],[4,2],[5,0],[10,13]]
}
},
computed: {
config: function() {
return {
series: [{
name: this.options.title,
data: this.plotData
}]
}
},
}
Source: stackoverflow.com
Related Query
- Loading data from API into a highcharts vue component
- HighCharts column chart populated with series data from a function
- Chart can't be populated from data component [vue-highcharts wrapper]
- Add dynamic data to line chart from mysql database with highcharts
- How to hardcode chart data in my Model then have my Controller pull it from there to display it. Using Highcharts
- How set options from HIGHCHARTS in a chart using vue chartkick
- Highcharts polar chart wind rose data from JSON
- HighCharts Angular - data from API not showing in chart
- Highcharts stock chart based on data from Quandl API
- How to bind to Highcharts constructor/listen to CustomEvents from Vue component
- Highcharts display label for pie chart using html table as data source
- HighCharts populate Pie Chart with data from SQL Database
- Creating a responsive accumulated rain chart from a series containing individual rain fall data using Highcharts
- Highcharts chart dynamic json data from sql
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- Highcharts not displaying data but drawing chart when reading from CSV file
- I am using click event to trigger a new page to generate the drill down data from highcharts however the entire chart is being generated
- Use exported data from Highcharts Editor in a new React chart
- Plotting Highcharts Chart from multiple data points in json
- Highcharts combination chart from JSON data
- HighCharts activity gauge populated with series data from a function
- Highcharts column chart with data from mongodb
- Passing data from external js file to vue component
- HighCharts and PHP json_encode. Data from MySQL. No data on chart
- Use return data from dynamic highcharts chart in Shiny
- Data Conversion from SQL, C# with Linq to JSON for Highcharts Line chart
- Highcharts how to pass data from server into chart
- Configuring Data Table from Highcharts Basic Column Chart
- Highcharts to display area range and line chart with data from a CSV file
- Highcharts cloud issue with data source when duplicating chart
More Query from same tag
- Primary and Secondary yAxis zero on different levels
- How to set the last point's position in Highcharts
- Opacity Highcharts pie chart IE8
- X axis labels overlap tooltip in column chart in highcharts
- Possible to use Highcharts Scatter Plot with categories?
- Plotting Global variable Highcharts
- Display multiple chart in one page
- Get y-value of points along the generated line graph in Highcharts
- database, servlet, json , javascript and highchart pie chart
- cannot show json data in line highchart
- Highcharts - Pie chart with parial doughnut overlap
- Highcharts stock chart time selector
- Highchart with straight lines and empty circle bullet
- Styling issues with Highcharts JS
- how to access highstock properties in this example
- How dynamically set the zoom level on highcharts?
- how to set html tags in text to highstock tooltip by lazy_high_chart gem
- In Vue JS, assign data from mounted()
- How to make highcharts stacked bar chart start from a specific date
- Is there any way to assign "Alt" property while using Highcharts
- Leaflet use popup not display
- Highcharts basic line chart - Y-axis label name
- libURL not working if using {symbol:'url(...)'} in highcharts exporting
- Align X-Axis label on a straight line in Highcharts Column Chart
- Highcharts Columnrange data labels high and low different colors
- highstock axis update from button
- Highcharts showing points on hovering over the line which are outside the chart area when the chart is zoomed in
- Highcharts CSV File
- customize highcharts tooltip to show datetime
- HighCharts load data via ajax