This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 秋雁南飞: | |
// 此版本通过设置geoindex && seriesIndex: [1] 属性来实现geo和map共存,来达到hover散点和区域显示tooltip的效果 | |
// 默认情况下,map series 会自己生成内部专用的 geo 组件。但是也可以用这个 geoIndex 指定一个 geo 组件。这样的话,map 和 其他 series(例如散点图)就可以共享一个 geo 组件了。并且,geo 组件的颜色也可以被这个 map series 控制,从而用 visualMap 来更改。 | |
// 当设定了 geoIndex 后,series-map.map 属性,以及 series-map.itemStyle 等样式配置不再起作用,而是采用 geo 中的相应属性。 | |
// http://echarts.baidu.com/option.html#series-map.geoIndex | |
// 并且加了pin气泡图标以示数值大小 | |
// // 全局变量区:参考江西绿色金融(谢谢:本来想用闭包实现接口数据调用,没时间了) | |
// 本图作者:参考秋雁南飞的《投票统计》一图,网址:http://gallery.echartsjs.com/editor.html?c=xrJU-aE-LG | |
var name_title = "中国人民大学2017年各省市计划录取人数" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://gallery.echartsjs.com/editor.html?c=scatter-world-population | |
//http://tuya.100bt.com/show/533806.html### | |
var data = [ | |
{name: '上海', value: 10, color: 'orange'}, | |
{name: '北京', value: 14, color: 'orange'}, | |
{name: '广州', value: 7, color: 'orange'}, | |
{name: '佛山', value: 1}, | |
{name: '杭州', value: 1}, | |
{name: '深圳', value: 4, color: 'orange'}, |