class Playbook::PbCircleChart::CircleChart
def chart_options
def chart_options standard_options.deep_merge(custom_options) end
def classname
def classname generate_classname("pb_circle_chart") end
def standard_options
def standard_options { align: align, borderWidth: border_width, id: id, colors: colors, chartData: chart_data, dark: dark ? "dark" : "", title: title, height: height, type: style, legend: legend, dataLabelHtml: data_label_html, dataLabels: data_labels, tooltipHtml: tooltip_html, useHTML: use_html, minPointSize: min_point_size, maxPointSize: max_point_size, innerSize: inner_size, zMin: z_min, startAngle: start_angle, rounded: rounded, layout: layout, verticalAlign: vertical_align, x: x, y: y, } end
def vertical_align_props
def vertical_align_props if vertical_align if object.vertical_align original_result = super class_to_remove = "vertical_align_#{object.vertical_align}" modified_result = original_result.gsub(class_to_remove, "").strip modified_result.empty? ? nil : modified_result else super end else super end end