|
@@ -5,11 +5,11 @@
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, ref, watch, onMounted, PropType } from 'vue';
|
|
|
-import Highcharts from 'highcharts/highstock';
|
|
|
-import HighchartszhCN from '@/utils/highcahrts-zh_CN';
|
|
|
+// import Highcharts from 'highcharts/highstock';
|
|
|
+// import HighchartszhCN from '@/utils/highcahrts-zh_CN';
|
|
|
import { defaultOpts } from '@/utils/chartOptions';
|
|
|
|
|
|
-HighchartszhCN(Highcharts);
|
|
|
+// HighchartszhCN(Highcharts);
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: '',
|
|
@@ -29,6 +29,7 @@ export default defineComponent({
|
|
|
/* 设置options */
|
|
|
const init = (): void => {
|
|
|
const new_options: any = { ...defaultOpts, ...props.options };
|
|
|
+ console.log(new_options);
|
|
|
|
|
|
//stock不支持线形图只支持时间图 画散点图用原始chart
|
|
|
let is_scatter = props.options.series ? props.options.series.every((_: any) => _.type === 'scatter') : false ;
|