Modifying an Existing Widget
Another way you can work with widgets is to modify existing widgets.
Perhaps there is a widget that is almost what you need but missing a vital property, message or other feature.
Rather that writing a new widget from scratch you can take the LCB source of the widget, modify it and rebuild the widget with the new features in place.
In this lesson we will take the Line Graph widget and add
- Additional color properties allowing for customization of the grid, axis and label colors.
- A fillLines property which fills in the area under each line with a color.
- Mouse events when the markers(vertices) are clicked on.