highcharts坐标轴中显示文字
2015-10-25 17:54
295 查看
http://code.hcharts.cn/hcharts.cn/hhhGfX
原来的例子
按照自己的要求修改后的,看看能不能显示在指定坐标位置。或者找DataLabels试试看
http://www.hcharts.cn/
学习一下“开始学习Highcharts"及API文档
原来的例子
$(function () { $('#container').highcharts({ xAxis: { plotBands: [{ // mark the weekend color: '#FCFFC5', from: Date.UTC(2010, 0, 2), to: Date.UTC(2010, 0, 4), zIndex: 2, label: { text: '我是x轴标示区', verticalAlign: 'middle', style: { fontSize: '12px', fontWeight: 600 } } }], tickInterval: 24 * 3600 * 1000, // one day type: 'datetime' }, yAxis: { plotBands: [{ from: 100, to: 150, color: '#f9f9f9', zIndex: 1 }] }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4], pointStart: Date.UTC(2010, 0, 1), pointInterval: 24 * 3600 * 1000 }] });
按照自己的要求修改后的,看看能不能显示在指定坐标位置。或者找DataLabels试试看
xAxis: [{ plotBands: [{ // mark the weekend //color: '#FCFFC5',//设置背景颜色 from: 1,//Date.UTC(2010, 0, 2), to: 2,//Date.UTC(2010, 0, 4), zIndex: 2, label: { text: '我是x轴标示区', verticalAlign: 'bottom', style: { fontSize: '12px', fontWeight: 600 } } }],
http://www.hcharts.cn/
学习一下“开始学习Highcharts"及API文档
相关文章推荐
- C++运算符重载
- 仿iPhone滑动选择器(PickAddressAndBirth)
- [Servlet]Web应用部署进阶
- js须知
- [LeetCode] Combinations [38]
- 由sqlite在手机的内存位置,引起onCreate当运行总结
- Docker持续化集成和测试
- Docker持续化集成和测试
- codeforce 556A
- 持续集成jenkins那些事1
- pat1021
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- Mybatis中模糊查询的各种写法
- Java反射基础(二)--Fileds对象的使用
- 1025
- bzoj3431【Usaco2014 Jan】Bessie Slows Down
- 交易应用-运行多个SQL声明
- error C2248: “CObject::operator =”: 不可访问 private 员(于“CObject”类声明)
- 一组数据中只有一个数字出现了一次。其他所有数字都是成对出现的。请找出这个数字。
- Configuration类响应的系统设置的事件