-3
A
回答
1
我認爲你是在chart.js之尋找chart.js
樣品雷達 http://www.chartjs.org/samples/latest/charts/area/radar.html
代碼片段
var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, {
type: 'radar',
data: {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255,99,132,1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
}
}
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.min.js"></script>
<canvas id="myChart" width="400" height="400"></canvas>
+0
在這個演示中y軸是垂直的,但我需要一個y軸不是垂直的圖表。 –
相關問題
- 1. 我怎樣才能得到一個JSON像這樣用JavaScript
- 2. 我怎樣才能得到一個TD
- 3. 我怎樣才能得到一個RejectedExecutionException
- 4. 我怎樣才能得到一個PortletRequest
- 5. 我怎樣才能得到這些值
- 6. 我怎樣才能得到
- 7. 我怎樣才能得到
- 8. 我怎樣才能得到這類已被傳遞到方法
- 9. 我怎樣才能達到像這樣的懸停效果?
- 10. 我怎樣才能得到這樣的陣列
- 11. 我怎樣才能得到這個回聲功能?
- 12. 多維數組 - 我怎樣才能得到這個功能?
- 13. 我怎樣才能讓這樣的
- 14. 我怎樣才能得到這個值到2位小數?
- 15. 我怎樣才能達到這種觀點?(在列表視圖)
- 16. 我怎樣才能找到一個DataTable
- 17. 我怎樣才能達到radiobuttonlist?
- 18. 我怎樣才能達到風效?
- 19. 正則表達式 - 我怎樣才能做到這一點?
- 20. 我怎樣才能達到這個效果?
- 21. 我怎樣才能達到這個佈局的CSS
- 22. 我怎樣才能做到這個正則表達式?
- 23. 我怎樣才能達到這個搜索條件?
- 24. 我怎樣才能得到Parsley.js
- 25. 我怎樣才能得到Queryable.Join的MethodInfo
- 26. 我怎樣才能得到父組件
- 27. 我怎樣才能得到的數字
- 28. 我怎樣才能得到statechange
- 29. 我怎樣才能得到其他表
- 30. 我怎樣才能得到NSScrollView尊重
你能否留下你使用的代碼? –