LoginSignup
1
2

More than 5 years have passed since last update.

勉強会のためのTIPSまとめ

Last updated at Posted at 2017-06-18

この勉強会のためだけの記事です

サンプルアプリ

絵文字を使いたい

HTMLソースの最初にこれを書けば使えます。

<link href="https://afeld.github.io/emoji-css/emoji.css" rel="stylesheet">

image.png

利用しているのはこのサイトです。
https://afeld.github.io/emoji-css/

グラフを描画する

/*
pprn : 採点データ
chart: 描画するcanvasタグに付与したid
*/

function drow(pprn,chart) {
  var data = {
      labels: [],
      datasets: [
          {
              label: "紳さんぺペロン日和",
              fillColor: "rgba(220,220,220,0.2)",
              strokeColor: "rgba(220,220,220,1)",
              pointColor: "rgba(220,220,220,1)",
              pointStrokeColor: "#fff",
              pointHighlightFill: "#fff",
              pointHighlightStroke: "rgba(220,220,220,1)",
              data: []
          }
      ]
  };
  Object.keys(pprn).forEach(function (key) {
    data.labels.push(key);
    data.datasets[0].data.push(pprn[key]);
  });
  var ctx = document.getElementById(chart).getContext("2d");
  var options = {
    scaleOverride : true,
    scaleSteps : 20,
    scaleStepWidth : 10,
    scaleStartValue : 0,
    scaleLabel: "<%=value%> 点"
  };
  new Chart(ctx).Line(data, options);
}```
1
2
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
1
2