public SeriesOptions( bool showBars, bool showLines, bool showPoints ) { if ( showBars ) { bars = new Bars(); bars.show = true; } if ( showLines ) { lines = new Lines(); lines.show = true; } if ( showPoints ) { points = new Points(); points.show = true; } }