content: package de.adesso.wickedcharts.showcase.options.chartjs;
  
  import de.adesso.wickedcharts.chartjs.chartoptions.*;
  import de.adesso.wickedcharts.chartjs.chartoptions.colors.SimpleColor;
  import de.adesso.wickedcharts.chartjs.chartoptions.fillingmodes.BoundaryFillingMode;
  import de.adesso.wickedcharts.chartjs.chartoptions.label.TextLabel;
  import de.adesso.wickedcharts.chartjs.chartoptions.valueType.IntegerValue;
  import de.adesso.wickedcharts.showcase.options.chartjs.base.ShowcaseConfiguration;
  
  import java.util.Arrays;
  
  /**
   * 
   * A sample that shows how different point style configurations look.
   *
   * @see <a href="http://www.chartjs.org/samples/latest/legend/point-style.html">http://www.chartjs.org/samples/latest/legend/point-style.html</a>
   *
   * @author maximAtanasov
   * @author anedomansky
   */
  @SuppressWarnings("serial")
  public class LegendPointStyleConfiguration extends ShowcaseConfiguration {
  	public LegendPointStyleConfiguration() {
  		super();
      	setType(ChartType.LINE);
  		
  		Data data = new Data()
  				.setLabels(TextLabel.of("January", "February", "March", "April", "May", "June", "July"));
  		setData(data);
  		
  		Dataset dataset1 = new Dataset()
  				.setLabel("My First dataset")
  				.setBackgroundColor(SimpleColor.RED_TRANSPARENT)
  				.setBorderColor(SimpleColor.RED)
  				.setPointStyle(PointStyle.RECT_ROT)
  				.setPointRadius(10)
  				.setData(IntegerValue.of(-40, 20, 30, -70, 12, 60, -30))
  				.setFill(BoundaryFillingMode.ORIGIN);
  		
  		
  		data.setDatasets(Arrays.asList(dataset1));
  		
  		Options options = new Options()
  				.setResponsive(true)
  				.setTitle(new Title()
  						.setDisplay(true)
  						.setText("Chart.js Point Style Legend"))
  				.setTooltips(new Tooltips()
  						.setMode(TooltipMode.INDEX)
  						.setIntersect(false))
  				.setLegend(new Legend()
  						.setLabels(new LegendLabel()
  								.setUsePointStyle(true)))
  				.setHover(new Hover()
  						.setMode(HoverMode.NEAREST)
  						.setIntersect(true))
  				.setScales(new Scales()
  						.setXAxes(new AxesScale()
  								.setDisplay(true)
  								.setScaleLabel(new ScaleLabel()
  										.setDisplay(true)
  										.setLabelString("Month")))
  						.setYAxes(new AxesScale()
  								.setDisplay(true)
  								.setScaleLabel(new ScaleLabel()
  										.setDisplay(true)
  										.setLabelString("Value"))))
  				;
  		setOptions(options);
  	}
  }
  