您当前的位置: 首页 >  ar

87Echarts - 散点图(Visual interaction with stream)

杨林伟 发布时间:2019-05-05 09:57:47 ,浏览量:3

效果图

在这里插入图片描述

源代码



	
		
		ECharts
		
		
	

	
		
		
// 基于准备好的dom,初始化echarts实例 var myChart = echarts.init(document.getElementById('main')); var option; $.getJSON('data/asset/data/house-price-area2.json', function (data) { var option = { title: { text: 'Dispersion of house price based on the area', left: 'center', top: 0 }, visualMap: { min: 15202, max: 159980, dimension: 1, orient: 'vertical', right: 10, top: 'center', text: ['HIGH', 'LOW'], calculable: true, inRange: { color: ['#f2c31a', '#24b7f2'] } }, tooltip: { trigger: 'item', axisPointer: { type: 'cross' } }, xAxis: [{ type: 'value' }], yAxis: [{ type: 'value' }], series: [{ name: 'price-area', type: 'scatter', symbolSize: 5, // itemStyle: { // normal: { // borderWidth: 0.2, // borderColor: '#fff' // } // }, data: data }] }; myChart.setOption(option);
关注
打赏
1688896170
查看更多评论

杨林伟

暂无认证

  • 3浏览

    0关注

    3183博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.2314s