Skip to main content
Version: 8.1

Vision - Bar Chart Scripting Functions

This page details the various component and extension functions available for Vision's Bar Chart component.

Component Functions

This component does not have component functions associated with it.

Extension Functions

configureChart

  • Description

    • Provides an opportunity to perform further chart configuration via scripting.
  • Parameters

    • Component self- A reference to the component that is invoking this function.
    • JFreeChart chart- A JFreeChart object. Refer to the JFreeChart documentation for API details.
  • Return

    • None

getBarColor

  • Description

    • Provides a chance to override the color of each bar. Can be used to have bar colors changed based upon bar value. Returning the value None will use the default bar color for the series.
  • Parameters

    • Component self - A reference to the component that is invoking this function.

    • int series - The series index for this bar.

    • int category - The category index for this bar.

    • int value - The value (a number) of this bar.

    • Color defaultColor - The color that the bar would be if this function wasn't invoked.

  • Return

    • Color