jQueryのプラグインjqplotで,素数計数関数の値をグラフ表示してみよう。
動作デモ:
JSでアニメーショングラフ描画(jqplotで素数計数関数を表示)
http://sourcecode-student.study-tips.info/demo/2015_03_jqplot_prime_number_counting/
参照
jqplotのオプションのドキュメント:
jqPlot Options
http://www.jqplot.com/docs/files/jqPlotOptions-txt.html
Axis Labels | jqPlot
http://www.jqplot.com/tests/axisLabelTests.php
- jqPlot support axis labels through the "label" option of each axis.
jqPlot Usage
http://www.jqplot.com/docs/files/usage-txt.html
- Be sure to give your target a width and a height:
jqplotの基本的な動作のデモ:
jQueryプラグインjqplotで,アニメーション付きグラフ表示のデモを詳しく解説。JavaScriptで動きのあるグラフ描画 - ソフトウェア勉強ログとサンプルコード
http://source-code-student.hatenablog.jp/entry/20150312/p1
flotで表示した場合(アニメ効果なし)
jQuery.flotで,素数の個数および素数計数関数をグラフ描画 - ソフトウェア勉強ログとサンプルコード
http://source-code-student.hatenablog.jp/entry/20150309/p1