How to use the EasyChartCustomizer class with a PMIEasyChart object?

Hello,

I’m new to module development. I noticed that when building an Easy Chart off the PMIEasyChart Class, there are no Customizers when you right click on the component. Can someone please show me how you would go about adding a Customizer to the component.

Thank you in advance!

While not precisely what you're asking, this topic has code I posted that includes a similar action on the Classic Chart:

(I didn't want to make my own customizer...)

1 Like

I thought the Customizer was already created by Inductive here and I just need to set it somewhere in the PMIEasyChart.

Never the less, that’s very helpful. Thank you!

In your BeanInfo, you should pass a CustomizerDescriptor in the super constructor, and optionally register it as the double click customizer:

    public PMIEasyChartBeanInfo() {
        super(PMIEasyChart.class, EasyChartCustomizer.VALUE_DESCRIPTOR);

        getBeanDescriptor().setValue(DOUBLE_CLICK_CUSTOMIZER_KEY, EasyChartCustomizer.VALUE_NAME);
    }
1 Like

Just like the code I posted in the linked topic. |:

1 Like

Haha sorry, I was a bit overwhelmed with everything going on there! I actually still don’t have it working, but I’m guessing I’m overwriting it somewhere.