//---------------------------在线damo01-----------------------------------
var chart = Highcharts.chart('container', {chart: {//zoomType: 'xy' //缩放控制},title: {text: '东京月平均天气数据'},subtitle: {text: ''},xAxis: [{categories: ['一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月'],crosshair: true}],yAxis: [{reversed: true,//反转max:'2500',min:'0',labels: {format: '{value}°1',style: {color: Highcharts.getOptions().colors[2]}},title: {text: '',style: {color: Highcharts.getOptions().colors[2]}},opposite: true}, { // Secondary yAxisreversed: true,//反转max:'2500',min:'0',labels: {enabled:true,format: '{value}°2',style: {color: Highcharts.getOptions().colors[3]}},title: {text: '',style: {color: Highcharts.getOptions().colors[3]}},opposite: true}, { // Secondary yAxismax:'2500',min:'0',reversed: true,//反转gridLineWidth: 0,title: {text: '',style: {color: Highcharts.getOptions().colors[0]}},labels: {format: '{value} °3',style: {color: Highcharts.getOptions().colors[0]}}}, { max:'2500',min:'0',gridLineWidth: 0,title: {text: '',style: {color: Highcharts.getOptions().colors[4]}},labels: {enabled:true,format: '{value} °4',style: {color: Highcharts.getOptions().colors[4]}},opposite: true}, {max:'2500',min:'0',   gridLineWidth: 0,title: {text: '',style: {color: Highcharts.getOptions().colors[1]}},labels: {enabled:true,format: '{value} °5',style: {color: Highcharts.getOptions().colors[1]}},opposite: true}, {max:'2500',min:'0',    gridLineWidth: 0,title: {text: '',style: {color: Highcharts.getOptions().colors[1]}},labels: {enabled:true,format: '{value} °6',style: {color: Highcharts.getOptions().colors[1]}},opposite: true}],tooltip: {shared: true},legend: {layout: 'vertical',align: 'right',x: 0,verticalAlign: 'top',y: 155,//floating: true,backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'}, series: [{name: '海平面气压1',type: 'column',yAxis: 2,data: [916, 815.9, 1015.5, 712.3, 1009.5, 1009.6, 910.2, 1013.1, 816.9, 1018.2, 916.7,1019],marker: {enabled: false},dashStyle: 'shortdot',tooltip: {valueSuffix: ' mb'}}, {name: '海平面气压2',type: 'column',yAxis: 3,data: [916, 815.9, 1015.5, 712.3, 1009.5, 1009.6, 910.2, 1013.1, 816.9, 1018.2, 916.7,1019],marker: {enabled: false},dashStyle: 'shortdot',tooltip: {valueSuffix: ' mb'}}, {name: '海平面气压3',type: 'spline',yAxis: 3,data: [716, 916, 1315.9, 1015.5, 812.3, 409.5, 809.6, 810.2, 1013.1, 1416.9, 1018.2,816.7],marker: {enabled: false},dashStyle: 'shortdot',tooltip: {valueSuffix: ' mb'}}, {name: '海平面气压4',type: 'column',yAxis: 2,data: [1016, 1016, 1015.9, 1015.5, 1012.3, 1009.5, 1009.6, 1010.2, 1013.1, 1016.9, 1018.2, 1016.7],marker: {enabled: false},dashStyle: 'shortdot',tooltip: {valueSuffix: ' mb'}}, {name: '海平面气压5',type: 'column',yAxis: 3,data: [916, 815.9, 1015.5, 712.3, 1009.5, 1009.6, 910.2, 1013.1, 816.9, 1018.2, 916.7,1019],marker: {enabled: false},dashStyle: 'shortdot',tooltip: {valueSuffix: ' mb'}}, {name: '海平面气压6',type: 'spline',yAxis: 3,data: [996, 315.9, 615.5, 912.3, 1009.5, 409.6, 510.2, 1013.1, 816.9, 718.2, 816.7,819],marker: {enabled: false},dashStyle: 'shortdot',tooltip: {valueSuffix: ' mb'}}]
});

显示效果:

//根据删除坐标所示可以将坐标轴与数据列进行动态关联,继而进行demo01改造
$(function () {var chart = Highcharts.chart('container', {xAxis: {categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']},yAxis: {title: {text: 'Temperature'},lineWidth: 2,lineColor: '#F33',id: 'temperature-axis'},series: [{name: 'Temperature',data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],color: '#F33'}]});// the button handlera$('#add').click(function () {chart.addAxis({ // Secondary yAxisid: 'rainfall-axiss',title: {text: 'Rainfall'},lineWidth: 2,lineColor: '#08F',reversed: true,//反转opposite: true});chart.addSeries({name: 'Rainfall',type: 'column',color: '#08F',yAxis: 'rainfall-axiss',data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]});chart.addSeries({name: 'Rainfall',type: 'column',color: '#08F',yAxis: 'rainfall-axiss',data: [71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4,49.9]});$(this).attr('disabled', true);$('#remove').attr('disabled', false);});$('#remove').click(function () {chart.get('rainfall-axiss').remove();  // =  chart.yAxis[0].remove();$(this).attr('disabled', true);$('#add').attr('disabled', false);});
});

显示效果: 

最终理想目标是隐藏其中重复坐标轴,显示6个数据项,图例为一正序,一反向,后来发现自己Ctrl+C、Ctrl+V 没有理解全api

// Highcharts 使用yAxis: 1, 可以直接绑定坐标轴。汗!!!!!!!
var chart = Highcharts.chart('container', {chart: {zoomType: 'xy'},title: {text: '东京月平均温度和降雨量'},subtitle: {text: '数据来源: WorldClimate.com'},xAxis: [{categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun','Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],crosshair: true}],yAxis: [{ // Primary yAxismax:'60',labels: {format: '{value}°C',style: {color: Highcharts.getOptions().colors[1]}},title: {text: '温度',style: {color: Highcharts.getOptions().colors[1]}}}, { // Secondary yAxismax:'500',title: {text: '降雨量',style: {color: Highcharts.getOptions().colors[0]}},reversed: true,//反转labels: {format: '{value} mm',style: {color: Highcharts.getOptions().colors[0]}},opposite: true}],tooltip: {shared: true},legend: {layout: 'vertical',align: 'right',x: 0,verticalAlign: 'top',y: 100,//floating: true,backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'},series: [{name: '降雨量1',type: 'column',yAxis: 1,data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],tooltip: {valueSuffix: ' mm'}}, {name: '降雨量2',type: 'column',yAxis: 1,data: [71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4,49.9],tooltip: {valueSuffix: ' mm'}}, {name: '降雨量3',type: 'spline',yAxis: 1,data: [106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4,49.9,71.5],tooltip: {valueSuffix: '°C'}}, {name: '温度1',type: 'spline',data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],tooltip: {valueSuffix: '°C'}}, {name: '温度2',type: 'column',data: [6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0],tooltip: {valueSuffix: '°C'}}, {name: '温度3',type: 'column',data: [ 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6,7.0,6.9],tooltip: {valueSuffix: '°C'}}]
});

highcharts多坐标轴混合图相关推荐

  1. plotly可视化绘制混合图

    plotly可视化绘制混合图 # 混合图多种可视化形式融合在一个图形中: from plotly.graph_objs import * import plotly as py import plot ...

  2. 今日 Paper | 社交媒体谣言检测;连续手语识别;细粒度服装相似性学习;混合图神经网络等

    2020-02-18 15:43   目录 基于双向图卷积神经网络的社交媒体上谣言检测 用于连续手语识别的时空多线索网络 基于属性特定嵌入网络的细粒度服装相似性学习 混合图神经网络在人群计数中的应用 ...

  3. poj 1637(混合图求欧拉回路)

    参考博客:http://www.cnblogs.com/destinydesigner/archive/2009/09/28/1575674.html 1 定义 欧拉通路 (Euler tour)-- ...

  4. 混合图 (Standard IO)

    Description 有一张N个点,M1条有向边,M2条无向边组成的混合图.询问一个给所有无向边定向的方案.使得最终的图中没有环.保证一定有解. Input 第一行,三个数字N,M1,M2. 接下来 ...

  5. 混合图的欧拉路径和欧拉回路判断

    混合图(既有有向边又有无向边的图)中欧拉环.欧拉路径的判定需要借助网络流!(1)欧拉环的判定: 一开始当然是判断原图的基图是否连通,若不连通则一定不存在欧拉环或欧拉路径(不考虑度数为0的点).其实,难 ...

  6. python dll 混合_Python | 条线混合图

    python dll 混合 In some of the cases, we need to plot a bar-line hybrid plot. This plot helps in a bet ...

  7. POJ 1637 混合图的欧拉回路 + Dinic

    题意 传送门 POJ 1637 题解 有向图存在欧拉回路的充要条件: 所有顶点入度等于出度,且图为连通图. 混合图存在欧拉回路的判断的基本思路: 混合图 G(V,E)G(V,E)G(V,E) 通过假设 ...

  8. poj1637(混合图判欧拉回路)

    把该图的无向边随便定向,计算每个点的入度和出度.如果有某个点出入度 之差为奇数,那么肯定不存在欧拉回路.因为欧拉回路要求每点入度 = 出度, 也就是总度数为偶数,存在奇数度点必不能有欧拉回路.  好了 ...

  9. POJ 1637 混合图的欧拉回路判定

    题意:一张混合图,判断是否存在欧拉回路. 分析参考: 混合图(既有有向边又有无向边的图)中欧拉环.欧拉路径的判定需要借助网络流! (1)欧拉环的判定: 一开始当然是判断原图的基图是否连通,若不连通则一 ...

  10. 欧拉回路(混合图的欧拉回路)

    /* ID: linjd821 LANG: C++ TASK: sightseeing */ //zju 1992 //混合图的欧拉回路,用网络流调整无向边 /* //转自某位牛人blog 混合图欧拉 ...

最新文章

  1. mysql 多表既有内连接又有外连接_MySQL 多表查询中的内连接和外连接
  2. [译]BEAST还是一个威胁吗?
  3. Python基础day01【软件安装、变量的定义和使用、数据类型、标识符和关键字、输入输出、数据类型转换、运算符、PEP 8 规范】
  4. python爬虫贴吧_Python爬虫如何爬取贴吧内容
  5. QPW 点评表(tf_appraise)
  6. Java JSR303 valid
  7. 演练 课程导航 1002 html
  8. python编写登录接口_Python之编写登录接口
  9. 查看DLL中导出的函数及参数
  10. 火狐firebug,firepath以及Selenium IDE插件安装方法
  11. 如何使用NAS才能确保数据100%安全(数据存储解决方案)
  12. 微型计算机原理及应用课程复习与考研指导,微机原理及应用课程复习.doc
  13. sql2008服务器运行哪个,SQL SERVER 2008R2 暂用服务器内存直到服务器死机。
  14. pandas中怎么把第一列删掉_pandas删除某一列的方法
  15. 你要偷偷学Python,然后惊艳所有人(类的属性和方法)
  16. leetcode简单1742/867
  17. 第50周收录98起融资,国内低靡,国外智能硬件火热 | 潜在周报
  18. SPI 测试程序sja1105
  19. AVAYA-RTX统一通信解决方案
  20. 图的广度遍历(湖北汽车工业学院数据结构实验)

热门文章

  1. 2021年N1叉车司机考试APP及N1叉车司机免费试题
  2. 职场感悟.Video.人生各自精彩,谁说人生是一场马拉松的?
  3. 多幸运用计算机演奏的乐谱,多幸运简谱-韩安旭演唱-孙世彦制谱
  4. 计算机字的符号,特殊符号图案大全
  5. java后端getmonth_Java中的MonthDay getMonth()方法
  6. Control Cotrol Name Confusing
  7. 英语 语义分割_语义分割该如何走下去?
  8. 服务器所在文件夹路径,服务器上文件夹路径
  9. DC学院数据分析师(入门)学习笔记----高级爬虫技巧
  10. 软件测试自动登录、浏览记录方向原理——基于Cookie和Session的区别和应用场景