matlab 凤羽图,风羽图 | JShare

风羽图 | JShare

// Construct the chart

Highcharts.chart('container', {

title: {

text: 'Highcharts Wind Barbs'

},

xAxis: {

type: 'datetime',

offset: 40

},

plotOptions: {

series: {

pointStart: Date.UTC(2017, 0, 29),

pointInterval: 36e5

}

},

series: [{

type: 'windbarb',

data: [

[9.8, 177.9],

[10.1, 177.2],

[11.3, 179.7],

[10.9, 175.5],

[9.3, 159.9],

[8.8, 159.6],

[7.8, 162.6],

[5.6, 186.2],

[6.8, 146.0],

[6.4, 139.9],

[3.1, 180.2],

[4.3, 177.6],

[5.3, 191.8],

[6.3, 173.1],

[7.7, 140.2],

[8.5, 136.1],

[9.4, 142.9],

[10.0, 140.4],

[5.3, 142.1],

[3.8, 141.0],

[3.3, 116.5],

[1.5, 327.5],

[0.1, 1.1],

[1.2, 11.1]

],

name: 'Wind',

color: Highcharts.getOptions().colors[1],

showInLegend: false,

tooltip: {

valueSuffix: ' m/s'

}

}, {

type: 'area',

keys: ['y', 'rotation'], // rotation is not used here

data: [

[9.8, 177.9],

[10.1, 177.2],

[11.3, 179.7],

[10.9, 175.5],

[9.3, 159.9],

[8.8, 159.6],

[7.8, 162.6],

[5.6, 186.2],

[6.8, 146.0],

[6.4, 139.9],

[3.1, 180.2],

[4.3, 177.6],

[5.3, 191.8],

[6.3, 173.1],

[7.7, 140.2],

[8.5, 136.1],

[9.4, 142.9],

[10.0, 140.4],

[5.3, 142.1],

[3.8, 141.0],

[3.3, 116.5],

[1.5, 327.5],

[0.1, 1.1],

[1.2, 11.1]

],

color: Highcharts.getOptions().colors[0],

fillColor: {

linearGradient: { x1: 0, x2: 0, y1: 0, y2: 1 },

stops: [

[0, Highcharts.getOptions().colors[0]],

[

1,

Highcharts.color(Highcharts.getOptions().colors[0])

.setOpacity(0.25).get()

]

]

},

name: 'Wind speed',

tooltip: {

valueSuffix: ' m/s'

}

}]

});

#container {

min-width: 300px;

max-width: 800px;

height: 300px;

margin: 1em auto;

}

{"resource":"3,7,63,72","options":"{\"editor\":{\"saveLayout\":false,\"saveFold\":false,\"autoFormat\":true},\"hcode\":{\"layoutId\":0}}","code":{"code":"ICBsq1","name":"风羽图","version":0,"doctype":0,"description":"","meta":"","newGroup":8,"group":{"id":8,"name":"demos","code":"demos"}}}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值