抱歉,如果这是非常基本的,但我不知何故迷失了它:我想将 Highstock/Highcharts 图表添加到我正在处理的应用程序中,但我想使用默认主题以外的主题(我想使用dark-unica。我看到了对 highcharts 主题的参考,但不知何故我仍然不明白如何完成。谁能告诉我怎么做?
这是 html 代码(来自examples/compare/文件夹):
index.html(来源:https : //www.highcharts.com/download):
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highstock Example</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="dark-unica.js"></script> <-! this has no effect -->
<script type="text/javascript"></script>
<!-- <style type="text/css">
${demo.css}
</style> -->
</head>
<body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="height: 400px; min-width: 310px"></div>
<script type="text/javascript">
var seriesOptions = [],
seriesCounter = 0,
names = ['MSFT', 'AAPL', 'GOOG'];
/**
* …Run Code Online (Sandbox Code Playgroud)