我正在尝试使用 npm 版本的 highcharts 绘制带有 highchart 的气泡图,但是出现错误 #17,我已经尝试导入 highcharts-more,但是没有用...
我有以下进口
import $ from "jquery";
import _ from "underscore";
import Logger from 'js-logger';
import Marionette from 'backbone.marionette';
import Highcharts from 'Highcharts';
import 'Highcharts/highcharts-more';
Run Code Online (Sandbox Code Playgroud)
气泡图的选项如下:
settings = {
chart: {
type: 'bubble',
plotBorderWidth: 1,
zoomType: 'xy'
},
legend: {
enabled: false
},
title: {
text: 'Sugar and fat intake per country'
},
subtitle: {
text: 'Source: <a href="http://www.euromonitor.com/">Euromonitor</a> and <a href="https://data.oecd.org/">OECD</a>'
},
xAxis: {
gridLineWidth: 1,
title: {
text: 'Daily fat intake' …
Run Code Online (Sandbox Code Playgroud)