score:6
The Organization chart module requires the Sankey diagram module so you need to import that first, e.g.:
import { Component, OnInit } from '@angular/core';
import * as Highcharts from 'highcharts';
import HighchartsSankey from "highcharts/modules/sankey";
import HighchartsOrganization from "highcharts/modules/organization";
import HighchartsExporting from "highcharts/modules/exporting";
HighchartsSankey(Highcharts);
HighchartsOrganization(Highcharts);
HighchartsExporting(Highcharts);
See official Highcharts Organization example which imports sankey.js
score:2
To further expand on sheilak's answer, you need to import sankey BEFORE importing organization, otherwise you will still get the TypeError and maybe an Error 17 as well. If you open up the organization.src.js, you'll see the define at the top makes this organization chart depend on highcharts and sankey, which is why they must both be declared before it.
This got me because we use Bower to manage our dependencies and I first added organization then added sankey and was baffled as to why it was still throwing this error. Reordering the imports fixed it.
Source: stackoverflow.com
Related Query
- highcharts organization chart is throwing error when loading module
- Issues using highcharts node export server from ClojureScript - "0x03 error when performing chart generation"
- HighCharts Stock Chart error code 18
- Highcharts pie chart slice animation only works when an error is thrown
- Highcharts cloud issue with data source when duplicating chart
- Highcharts Error while loading solid gauge module
- Animate Highcharts series when chart appears in view when using Data Module
- Highcharts error #17 when adding series to the chart using angular 4
- Highcharts error 19 issue when adjusting container width that chart displays in
- Server side chart .svg export with Highcharts and PhantomJS, error loading data from .csv file
- Highcharts => Getting the id of a point when clicking on a line chart
- Highcharts saying undefined is not a function when trying to add a new chart
- JavaScript error when using Highcharts
- Using Highcharts and displaying a message over or on the chart when there is no data
- Highcharts drilldown - when useing setData chart doesn't stay drilled down
- Update Chart Colors When Using Styled HighCharts Version
- Show HighCharts tooltip when chart loads
- creating a bar chart using Highcharts with React - getting an error that rendering div isn't found
- Getting "Highcharts error #17" when creating histogram (using Highcharts with Angular 6)
- Highcharts chart not loading after AJAX call to insert partial containing chart
- Highcharts stock chart - Technical Indicators - Stock price is missing in the tooltip when selecting the 'All' range
- Customise Highcharts Pie Chart Selection State so that slice does not animate out when selected
- Adding round corners to Highcharts Bar Chart with stacked bars when value is 0
- Loading 'theme' and 'exporting' module with Highcharts using Requirejs
- highcharts - error when updating a series to have less categories than previously
- Android highcharts library chart loading completed listener event
- Why do I have the issue 'property assigment expected' when I want to display a chart on my web page using highcharts
- Highcharts error when add and shift data to hidden series
- Highcharts - how to do a responsive pie chart when the texts of the labels are long
- Jquery Highcharts is not loading when using with common function?
More Query from same tag
- Disable-Click on Legend in HighCharts Column Graph
- highchart dynamic binding using asp.net
- Highcharts trying to show labels directly left of columns
- How to call another function on changing the time range selector and date selector in Highcharts stock?
- testing React Highcharts config object with formatter callback
- I cant save my highchart chart data in localStorage
- Selecting different types of charts
- can we set the data labels out of the slice if it is not fit in +highchart?
- Is it possible to use R Plotly library in R Script Visual of Power BI?
- How to set tooltip background as point color for split chart in Highcharts?
- Highcharts areaspline, not getting the default color for chart
- Highcharts Line Charts Out of memory
- Highcharts range selector doesn'n work
- Highcharts - Adding css to highcharts legend
- Use django variable (array of elements from sqlite3 database) inside javascript embedded code
- Highchart not adding new series or removing old series
- How do I change the style of the frame lines in a radar(polar) chart created with highcharts?
- Table appearing in front of my dropdown menu
- Highchart fillColor linearGradient in area chart
- How to set minutes as units in Highstock chart using data from CSV
- Interaction with multiple charts in a page
- How do I include scripts in my AngularJS controller?
- JIRA Gadget Plugin with HighCharts
- C# Parse string into arrays for HighCharts
- Basic jquery fiddle to Angular Directive
- Applying a custom colors on HighCharts Line?
- How to show specific point to show specific information in HighCharts
- Highchart with external CSV (in external domain)
- programmatically trigger click event in svg rect element
- Javascript setInterval/setTimeout not working when browser tab not focused