Sha256: 77636ff91559fce11e254c0bb32cab07921a03abee30e3e4b7a776843870af73
Contents?: true
Size: 1.19 KB
Versions: 515
Compression:
Stored size: 1.19 KB
Contents
# frozen_string_literal: true module Playbook module PbTreemapChart class TreemapChart < Playbook::KitBase prop :chart_data, type: Playbook::Props::Array, default: [] prop :colors, type: Playbook::Props::Array, default: [] prop :drillable, type: Playbook::Props::Boolean, default: false prop :grouped, type: Playbook::Props::Boolean, default: false prop :height prop :title, default: "" prop :tooltip_html, default: '<span style="font-weight: bold; color:{point.color};">● </span> {point.name}: ' + '<b>{point.value} </b>' def chart_type "treemap" end def chart_options { chartData: chart_data, className: classname, colors: colors, dark: dark ? "dark" : "", drillable: drillable, grouped: grouped, height: height, id: id, title: title, tooltipHtml: tooltip_html, type: chart_type, } end def classname generate_classname("pb_treemap_chart") end end end end
Version data entries
515 entries across 515 versions & 1 rubygems