score:2
Accepted answer
Try using curl.js's legacy loader. It's great for global scripts, such as highcharts.
var hchartBase = "https://code.highcharts.com/";
var hchartCfg = {
loader: "curl/loader/legacy",
exports: "Highcharts"
};
curl.config({
baseUrl: "",
paths: {
"curl": "your/path/to/curl/curl.js",
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js",
"hchart": { location: hchartBase + "highcharts", config: hchartCfg },
"hchartmore": { location: hchartBase + "highcharts-more", config: hchartCfg },
"hchartexp": { location: hchartBase + "modules/exporting", config: hchartCfg }
}
});
Note that I included a path to curl. This is needed for curl to find the legacy loader.
Normally, you wouldn't use the same legacy config for all three libs, but since I couldn't tell if the highcharts-more and exporting libs don't declare any useful globals that curl could export on your behalf, I just used the same config for all three.
More info is here: https://github.com/cujojs/curl/tree/master/src/curl/loader
Source: stackoverflow.com
Related Articles
- What is the best way to integrate Highcharts with Curljs?
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts with ajax and json data what am i doing wrong?
- what means ${demo.css} in example files of highcharts ? That piece of code seems to be literal
- passing formatting JavaScript code to HighCharts with JSON
- Integrate Highcharts maps with react component
- Highcharts series visibility with csv data source
- How to have multiple highcharts with different series data in vuejs without repeating code
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Highcharts cloud issue with data source when duplicating chart
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- What is the problem with my highcharts code?
- Integrate Highcharts with Angular5 without any 3rd Party library
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Best (easy) way to fill highcharts with data from database?
- Reload chart data via JSON with Highcharts
- Highcharts - how to have a chart with dynamic height?
- How to Integrate Flot with AngularJS?
- What format does the highcharts js library accept for dates?
- Resize height with Highcharts
- Styling bar colors in Highcharts with a gradient issue
- How to use highcharts with angular 5?
- Loading Highcharts with require.js
- dealing with highcharts bar chart with really long category names
- Handling unix timestamp with highcharts
- Displaying hours and minutes on x-axis with Highcharts
- Highcharts - Keep Zero Centered on Y-Axis with Negative Values
- Resize data points with highcharts
- Intermittent Highcharts heatmap issue when using EO.PDF
- Highcharts-react not rendering on initial page load
- How to get the list of unselected items in highmaps?
- How can I group different series by different units using rangeSelector?
- Origin of a coordinate space
- Highcharts: create multiple series using JSON data
- Highcharts, How to show datatable when export PDF and not show pdf when normal
- Highstock export csv based on data grouping
- Annotations to show labels on multiple points
- Date Labels on X Axis Not Showing For Each Column
- How to stand out a vertical plotted line in a dense series using highchart?
- How to stop screen from moving up?
- Changing the name for 'categories' of x axis while implementing crossfilter with highcharts
- Execute function after zoom highcharts
- Print Highcharts in pdf format
- Highcharts donut label overflow container
- Does manipulating a hidden DOM element affect performance?
- highchart network network-graph
- How to call highcharts button from outside
- HighCharts inside of a javascript function