mirror of https://github.com/masayuki0812/c3.git
Quite good looking graph derived from d3.js
http://c3js.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
639 B
34 lines
639 B
.container |
|
|
|
%h1.title #{data.samples[id].title} |
|
|
|
.chart |
|
#chart |
|
|
|
#ace-error |
|
|
|
.sourcecode.margin-medium-v.margin-small-h |
|
%h3 # #{id}.js |
|
#javascript-editor.c3-editor |
|
= js_as_plain id |
|
|
|
- if defined? other_css |
|
.sourcecode |
|
%h3 # #{other_css} |
|
%pre |
|
%code.css |
|
= css_as_plain other_css |
|
|
|
- if defined? other_files |
|
- other_files.each do |f| |
|
.sourcecode |
|
%h3 # #{f} |
|
%pre |
|
%code.html |
|
= data_as_plain f |
|
|
|
= partial :footer |
|
|
|
= partial :script |
|
= partial :sample_editor, locals: { type: 'javascript' } |
|
= javascript_include_tag "samples/#{id}.js"
|
|
|