Class: Asciidoctor::Chart::Converter::Html5ChartistConverter

Inherits:
Base
  • Object
show all
Defined in:
lib/asciidoctor/chart/converter/chartist.rb

Instance Method Summary collapse

Methods inherited from Base

#handles?

Instance Method Details

#convert_bar_chart(node) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/asciidoctor/chart/converter/chartist.rb', line 15

def convert_bar_chart node
  data, labels = prepare_data node
  "    \#{chart_block_element node}\n    \#{chart_bar_script node, data, labels}\n  HTML\nend\n"

#convert_line_chart(node) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/asciidoctor/chart/converter/chartist.rb', line 7

def convert_line_chart node
  data, labels = prepare_data node
  "    \#{chart_block_element node}\n    \#{chart_line_script node, data, labels}\n  HTML\nend\n"