score:0
the issue seems to be from the way i imported the highcarts libraries. so i removed the * as
and changed it to:
import highcharts from "highcharts/highmaps";
import worldmap from "@highcharts/map-collection/custom/world.geo.json";
and for this matter i changed the tsconfig.json
file to accept the changes, you can use the follwing tsconfig.json
file.
{
"compileonsave": false,
"compileroptions": {
"allowsyntheticdefaultimports": true,
"baseurl": "./",
"outdir": "./dist/out-tsc",
"sourcemap": true,
"declaration": false,
"downleveliteration": true,
"experimentaldecorators": true,
"module": "esnext",
"moduleresolution": "node",
"resolvejsonmodule": true,
"importhelpers": true,
"target": "es2015",
"typeroots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
},
"angularcompileroptions": {
"enableivy": true,
"fulltemplatetypecheck": true,
"strictinjectionparameters": true
}
}
score:1
found solution as i set mapdata key's value to json object which i copied from this link https://code.highcharts.com/mapdata/ (here copy the geojson file's data which is map data of respective state/country you want).now chart object will look like below code,
{
series: [{
data: this.mapchartitem.data,
mapdata: this.mapdatajson,
joinby: 'hc-key',
name: 'orders for',
states: {
hover: {
color: '#bada55'
}
},
datalabels: {
enabled: true,
format: '{point.name}'
}
}
}
here this.mapdatajson will be data of geojson file's data
Source: stackoverflow.com
Related Query
- world map not displaying - Angular Highcharts
- Highcharts not displaying charts through angular controller
- Highcharts heat map not displaying properly
- HighChart World Map not rendering in Angular 7
- Highcharts Heat map not displaying data yet correctly labelling
- highcharts world map not rendering
- Highcharts not displaying data labels for Pie chart in arabic
- Angular HighCharts ParlimentChart is not working
- Highcharts not displaying data at some zoom levels
- Highcharts not displaying anything just blank html page
- highcharts graphs in bootstrap tabs are not displaying properly
- Highcharts stacking bar chart border not displaying on right side
- Using highcharts with rails not displaying plotLines
- Last y-axis label not displaying on highcharts spiderweb
- Highcharts - Multiple Axis Graph not displaying labels
- Highcharts not displaying series data for graph with multiple Y-axes
- Highcharts JSON, chart not displaying
- Highcharts map example not working
- Highcharts not displaying in Firefox
- HighCharts Solid Gauge Chart not displaying ticks
- HighCharts x-axis not displaying correctly
- Angular Highcharts dynamic x-axis not working
- Highcharts export not displaying correctly
- HighCharts and Map Bubble are not compatible
- HighCharts Angular - data from API not showing in chart
- Highcharts of type area range not displaying markers like circles
- Angular Highcharts hideNoData not working dynamically
- TypeError: p is not a function while calling map function in angular 4 for fetching series for bellcurve highchart
- Highcharts Not displaying function's data values
- Highcharts Column Chart Not Displaying Dynamic Values
More Query from same tag
- HighCharts Parameters meaning - plotX,plotLeft,shapeArgs
- HighCharts - problems with tickInterval and tickAmount
- having trouble with AlphaVanatage API, which return a Json timeseries, and I am not able to work with in python, since I need to graph with Highgraph
- animate addPlotBand Highcharts
- Change HighCharts axis title
- Column rang chart is not getting reset when click on legends in highcharts
- Highcharts: Parse multi-variable JSON data
- Highstock Highcharts date time data on Xaxis
- How can I switch between JSON data sets in HighMaps using setData?
- How do I make the title blank disappear for a highchart spider chart?
- set initial graphs on highcharts
- How to delete text scrolling by X in Highcharts
- jQuery UI Tabs and Highcharts display/rendering issue
- EmberJS 2.7 passing data down into a component is failing
- Highcharts switching off animation for column chart
- Highcharts: how to maintain the same order of category labels when bar chart changes to column chart
- Highcharts angular wrapper labels.items don't refresh
- Add onclick event on chart made with the highcharts library
- How to implement similar line chart using the Highcharts library?
- Highcharts not picking up on date - dates being interpreted as strings
- Creating a 1D chart using Highcharts
- Highcharts bar chart with varied bar widths?
- Display Percentage Values on Z-axis (highcharts) bubble chart
- Have an issue with JavaScript, AJAX code displaying data
- Ruby on Rails: How to generate an array from records to display in Highcharts?
- Highcharts chart.events.redraw doesn't work for chart.xAxis[0].update
- How do you create a survey that will immediately display the results as a pie chart on a website?
- Highcharts markers on legend and hover ONLY
- Highcharts yAxis click event
- Highcharts solid gauge stacked values