bar property

dynamic bar

Implementation

external dynamic
    /*{
  /**
   * Change the width of bar chart. If ratio is specified, change the width of bar chart by ratio.
   */
  width?:
    | number
    | {
        /**
         * Set the width of each bar by ratio
         */
        ratio: number;

        /**
         * Set max width of each bar
         */
        max?: number;
      }
    | {
        /**
         * Set the width option for specific dataset
         */
        [key: string]: {
          ratio: number;
          max: number;
        };
      };

  headers?: Array<{ [key: string]: string }>;

  /**
   * Set threshold ratio to show/hide labels.
   */
  label?: {
    threshold?: number;
  };

  /**
   * Set if min or max value will be 0 on bar chart.
   */
  zerobased?: boolean;

  /**
   * Set space between bars in bar charts
   */
  space?: number;

  /**
   * The padding pixel value between each bar.
   */
  padding?: number;

  /**
   * Set the radius of bar edge in pixel.
   * - NOTE: Only for non-stacking bars.
   */
  radius?:
    | number
    | {
        /**
         * Set the radius ratio of bar edge in relative the bar's width.
         */
        ratio?: number;
      };

  /**
   * The senstivity offset value for interaction boundary.
   */
  sensitivity?: number;
}*/
    get bar;
void bar=(dynamic v)

Implementation

external set bar(
    dynamic
        /*{
  /**
   * Change the width of bar chart. If ratio is specified, change the width of bar chart by ratio.
   */
  width?:
    | number
    | {
        /**
         * Set the width of each bar by ratio
         */
        ratio: number;

        /**
         * Set max width of each bar
         */
        max?: number;
      }
    | {
        /**
         * Set the width option for specific dataset
         */
        [key: string]: {
          ratio: number;
          max: number;
        };
      };

  headers?: Array<{ [key: string]: string }>;

  /**
   * Set threshold ratio to show/hide labels.
   */
  label?: {
    threshold?: number;
  };

  /**
   * Set if min or max value will be 0 on bar chart.
   */
  zerobased?: boolean;

  /**
   * Set space between bars in bar charts
   */
  space?: number;

  /**
   * The padding pixel value between each bar.
   */
  padding?: number;

  /**
   * Set the radius of bar edge in pixel.
   * - NOTE: Only for non-stacking bars.
   */
  radius?:
    | number
    | {
        /**
         * Set the radius ratio of bar edge in relative the bar's width.
         */
        ratio?: number;
      };

  /**
   * The senstivity offset value for interaction boundary.
   */
  sensitivity?: number;
}*/
        v);