class Playbook::PbLineGraph::LineGraph

def chart_options

def chart_options
  {
    id: id,
    className: classname,
    chartData: chart_data,
    type: chart_type,
    title: title,
    subtitle: subtitle,
    axisTitle: axis_title,
    pointStart: point_start,
    xAxisCategories: x_axis_categories,
    yAxisMin: y_axis_min,
    yAxisMax: y_axis_max,
    legend: legend,
    toggleLegendClick: toggle_legend_click,
    height: height,
  }
end

def chart_type

def chart_type
  gradient ? "area" : "line"
end

def classname

def classname
  generate_classname("pb_line_graph")
end