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 Query
- 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
- How is the proper way to use HighCharts with StencilJS?
- I want to update my series dynamically on highcharts with a click & also bring it to the original way by clicking on an other button (#previous)
- Is there any way to test the highcharts with large data-set with Jest and React.?
- What is the problem with my highcharts code?
- Best (easy) way to fill highcharts with data from database?
- What format does the highcharts js library accept for dates?
- How to export the whole page or html content with Highcharts not just the chart?
- What is the best strategy for testing D3/HighCharts/SVG?
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Plotting seconds, minutes and hours on the yAxis with Highcharts
- Highcharts - multiple plot with the same x scale
- Highcharts - Scatter chart with a line connecting the dots in the series
- Can I with highcharts column stacking on hover not highlighting the whole serie
- Add onclick event on chart made with the highcharts library
- highcharts zero values results in graph half way instead at the bottom
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts load data with ajax to populate the tooltip
- Is there any way we can use Highcharts with mPDF converter?
- DotNet HighCharts , Populates a pie with the result of a query
- Highcharts - areaspline with negative values, area should be always at the bottom
- Highcharts with ajax and json data what am i doing wrong?
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- How to achieve the best possible performance with mutable data and real-time charts in React?
- Gauge Series of Highcharts with React not the Solid Gauge but Gauge Series
- What should be the right borderWidth in a solidgauge Highcharts chart?
- What is the fastest way to preprocess data?
- Highcharts tooltip in scrollable container scrolls with the content
- Highmaps: what is the code for a county?
More Query from same tag
- Highchart data series filled with different colors
- How to hide labels in the highcharts in the pie
- Image on pie graph with highcharts
- Grouped Scatter or Bars Chart
- Disables Crosshair for one series of two
- Highcharts Column Chart
- Parsing JSON Data for Lazy Highcharts
- Highcharts angular wrapper labels.items don't refresh
- Declare min and max values from a CSV
- Decimal values for yAxis categories in Highcharts
- Play Framework: PDF'ing a template that uses highcharts JS library via a Job
- Highcharts: Show x axis for missing data but ignoring certain area
- Retrieve data from Controller to View using Json to HighCharts
- Sync ticks on multiple independent axis
- How to disable a highchart chart completely
- get values of date-input-boxes from rangeSelector
- Plotting Irregular DateTime Data with a predefined X Axis
- highchart - pointstart with given x values
- Highcharts click event on dataLabel which is using HTML
- Highcharts - disable hover for slices on pie chart
- Opening a saved rchart html file
- combine series in legend
- Grouping Legends in Pie Chart with Highcharts
- Two data points on same day
- Is there a way to get around 'setData' on a highcharts area chart?
- Highcharts Sunburst changing color on level change
- Async update axes in highcharts
- Highcharts: browser width affects marker drawn or hidden
- Highcharts activity gauge in Shiny
- how to format flot char yaxis by value seconds in highcharts?