1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| <!--fontColor:数据颜色--> <!--padding:上下左右填充--> <!--suggestedMin:最小值--> {% p center logo large, Hello😜 %}
***
{% p center h1, 一个用JS开发的硬件工程师 😋 %}
{% p center small, 雷达图看不到刷新刷新就好啦 %}
{% chart 100% 300 %} { type: 'radar', data: { labels: ['C', 'Python', 'HTML', 'micropython', 'ESP8266', 'ESP32', 'STM32', 'SCT15', '微信小程序'], datasets: [{ label: '值', backgroundColor: '#9400D377', borderColor: '#9400D3', data: [20, 50, 40, 80, 40, 80, 55, 55, 10], lineTension: 0.2, pointStyle: 'rectRounded', pointHoverBackgroundColor: '#FFFFFF' }] }, options: { legend: { labels: { fontColor: '#9400D3', <!--数据颜色--> fontSize: 12, FontFamily: '' } }, layout: { padding: { <!--上下左右填充--> left: 0, right: 0, top: 0, bottom: 0 } }, responsive: true, title: { display: true, text: 'My dataset' }, scale: { angleLines: { display: true }, ticks: { suggestedMin: 0, <!--最小值--> suggestedMax: 80 <!--最大值--> } } } } {% endchart %}
|