15
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Chart.js で レーダーチャートを作成

Last updated at Posted at 2015-03-13

:musical_score: 概要

Chart.js で レーダーチャートを作成

サンプル

<!doctype html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <title>Qiita Scouter - Radar Chart</title>
  <script src="Chart.min.js"></script>
  <script language="JavaScript"><!--
  function displayPieChart() {
    var data = {
        labels: ["攻撃力", "知力", "すばやさ"],
        datasets: [
            {
                label: "Qiita Scouter",
                fillColor: "rgba(200,0,0,0.2)",
                strokeColor: "red",
                pointColor: "red",
                pointStrokeColor: "red",
                pointHighlightFill: "red",
                pointHighlightStroke: "red",
                data: [10780, 87010, 3927]
            }
        ]
    };
    var ctx = document.getElementById("radarChart").getContext("2d");
    var options = { };
    var radarChart = new Chart(ctx).Radar(data, options);
  }
  --></script>
</head>
<body onload="displayPieChart();">
  <div class="box">
    <canvas id="radarChart" height="450" width="450"></canvas>
  </div>
</body>
</html>

chartjs_radar_chart.png

:books: 外部資料

15
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?