score:8
- what is the proper way of using nodata option with angular 5
- how to make sure it appears consistently? probably different configuration like setdata([]) or setdata(null) makes it appears in consistently, but i am not able to find out one root cause behind its inconsistency.
- how can i toggle nodata message dynamically.
re 1. the nodata
module should work automatically, so if you will add some point to one of your currently visible series, then the "no-data" message disappears. similarly, when you remove()
the series points, so that the series will be empty, then the "no-message" information will be visible on the chart. in case of using it manually, of course you can do it just like you mentioned above. here is the simple example of use (with buttons included): https://stackblitz.com/edit/highcharts-toggling-nodata-w5fwkf
re 2. looks fine if using setdata([])
and setdata(null)
. here is the example: https://stackblitz.com/edit/highcharts-toggling-nodata-54xrqh . if you mean something different, could you describe your question more precisely?
re 3. if you mean change the nodata
message dynamically, you should set the chart.options.lang.nodata
property equal to some new string, then call chart.hidenodata()
and chart.shownodata
to refresh element value. here is the example applied to the ng: https://stackblitz.com/edit/highcharts-toggling-nodata-hwnzcl
[edit]
refering to your question update, in order to use a specific module directly within component and not by setting it in providers, just delete the { provide: highcharts_modules, usefactory: () => [nodatatodisplay] }
from app.module.ts
file, and load appropriate module in app.component.ts
using require()
syntax, like below:
import highcharts from 'highcharts';
const nodata = require('highcharts/modules/no-data-to-display')
nodata(highcharts)
live example: https://stackblitz.com/edit/highcharts-toggling-nodata-muxx9s
kind regards!
**
score:3
try out this
import nodatatodisplay from 'highcharts/modules/no-data-to-display';
...
{ provide: highcharts_modules, usefactory: () => [nodatatodisplay] }
Source: stackoverflow.com
Related Query
- Angular Highcharts - How to enable noData options and update it dynamically
- How to enable noData with highcharts and angular
- Highcharts - how to properly update series[0].data and yAxis title of a VUMeter?
- How to update new plotline values instead of removing and adding new ones in highcharts
- How to structure Angular with Highcharts and lots of dynamic data
- How to dynamically update highcharts using jQuery UI sliders
- How to remove the value and number labels from Highcharts angular gauge
- Highcharts smooth transition on data update using Angular and ng-highcharts
- How do I dynamically change the yAxis min, max and tickInterval in HighCharts
- How to set Highcharts options in Angular 5
- Angular Highcharts - How to clone chart dynamically
- How to update Highcharts data dynamically over a period of time
- How to add multiple series dynamically and update its data dynamically
- Highcharts Angular - How to set chart width and height with percentages?
- How to invert (transpose) the rows and columns of an HTML table which is generated dynamically from highchair in Angular 12?
- Highcharts Angular update chart with new options - including linked series
- Dynamically adjust Y axis min/max based on ajax update and data points in Highcharts
- How to add flags to countinuous update angular highcharts
- update the yAxis min value and tooltip dynamically in highcharts
- how to enable only 1 out of 2 column column graph by default when page loads in highcharts and the 2nd one gets visible when toggled in the legend
- How to enable vertical scroll bar for legends in highcharts implemented in angular 8
- How to dynamically create timeline chart on click of x-range chart in highcharts angular
- how can I use rangeselector and navigation in highcharts in the given code
- how to update bar graph and also its legend without re-drawing it in highcharts
- How to create a column range chart in Highcharts using range and navigator functions?
- How to use highcharts with angular 5?
- Highcharts - How to programmatically toggle legend items and determine which items are selected
- Hiding _groups_ of series in Highcharts and jQuery: how to get acceptable performance?
- How do I dynamically change a data point in Highcharts using JavaScript
- how to import highcharts with webpack and babel
More Query from same tag
- Highcharts PHP JSON - correct data format
- Make highchart columns extend to edge
- highcharts / highstock doesn't show markers after 500 pts
- Highstock - Remove bottom date tooltip from line chart
- How to retain highchart line graph by onClick() function - php mysql
- Highchart not working (Codeigniter - JSON - Bootstrap)
- Highcharts - tooltip\croshair where there's no point
- JSON, Highcharts and Coldfusion json data
- How to show first and last date ticks in the navigator - Highcharts?
- Show HTML special characters as is
- Set a maximum for data grouping in Highstock charts to prevent from grouping
- HighCharts pie chart X-axies values are not displayed while trying to get data from MySQL database using PHP
- X axis labels on HighCharts
- HighCharts in R Shiny App
- How can i get pie chart with dynamic json data in Angular js
- Highcharts maps with decimals
- Highchart's selection-function updating with delay
- HighCharts.js: How to Create a Boxplot with stems representing confidence intervals, NOT max/min?
- Select cell value from table
- Highcharts line chart doesn't respect legend customization
- Rename legend on export in highchart
- How to Add Custom Data to Highchart.js Tooltip
- Highcharts ajax not working
- Highcharts gauges not working in IE8
- Scatter chart using HTML and Java Script (makeing y axis starting from zero (upside down) )
- Changing Highcharts label and sorting x-axis using Django-chartit
- highcharts using pie chart plotOptions
- yAxis tickinterval in highcharts is not working as per the value
- Highcharts async multi level drill down
- How to correctly utilize the timezone option in Highcharts