/
githubmirror
/
echarts
Обзор
Документация
Войти
/
githubmirror
/
echarts
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/parallel-bounds.html
151 строка
4 KB
Jack Hickson
test(parallel): add parallel series max min test case
24 ноя 2025, 19:24
24 ноя 2025, 19:24
936e870
Код
Авторство
О чём код?
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <html> <head> <meta charset="utf-8"> <script src="lib/simpleRequire.js"></script> <script src="lib/config.js"></script> <script src="lib/testHelper.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="lib/reset.css" /> </head> <body> <style> h1 { line-height: 60px; height: 60px; background: #e0ebff; text-align: center; font-weight: bold; font-size: 14px; } .chart { height: 500px; } </style> <h1>normal</h1> <div class="chart" id="main0"></div> <h1>Max and Min of second series outside first second axis inverse</h1> <div class="chart" id="main1"></div> <script> require([ 'echarts' ], function (echarts) { var lineStyle = { normal: { width: 1 } }; var option = option = { parallelAxis: [ { dim: 0, name: 'Axis 1' }, { dim: 1, name: 'Axis 2' }, ], series: [ { type: 'parallel', lineStyle: { width: 4 }, data: [ [12.99, 100], [9.99, 80], [20, 120] ] }, { type: 'parallel', lineStyle: { width: 4 }, data: [ [8, 50], [6, 20], [10, 60] ] }, ] }; var chart = testHelper.createChart(echarts, 'main0', option); }); </script> <script> require([ 'echarts' ], function (echarts) { var lineStyle = { normal: { width: 1 } }; var option = option = { parallelAxis: [ { dim: 0, name: 'Axis 1' }, { dim: 1, name: 'Axis 2', inverse: true }, ], series: [ { type: 'parallel', lineStyle: { width: 4 }, data: [ [12.99, 100], [9.99, 80], [20, 120] ] }, { type: 'parallel', lineStyle: { width: 4 }, data: [ [20, 120], [15, -20], [-20, 130] ] }, ] }; var chart = testHelper.createChart(echarts, 'main1', option); }); </script> </body> </html>