ScatterChart Component synced with Web Awesome 3.4.x

provides scatter chart functionality for Angular applications.

Overview

Import

Import the scatterChart directive from the angular-awesome package:

// Import the scatterChart directive
import { WaScatterChartDirective } from 'angular-awesome/scatter-chart';

Examples

# WaScatterChartDirective Usage Examples

Basic Usage

<wa-scatter-chart label="Scatter Chart">
  <script type="application/json">
  {
    "data": {
      "labels": ["Jan", "Feb", "Mar", "Apr", "May"],
      "datasets": [{
        "label": "Sales",
        "data": [65, 59, 80, 81, 56]
      }]
    }
  }
  </script>
</wa-scatter-chart>

With Angular Bindings

<wa-scatter-chart
  [label]="chartLabel"
  [config]="chartConfig"
  [withoutAnimation]="true"
  legendPosition="bottom">
</wa-scatter-chart>

Custom Styling

<wa-scatter-chart
  label="Styled Chart"
  [fillColor1]="'rgba(59, 130, 246, 0.5)'"
  [borderColor1]="'rgb(59, 130, 246)'"
  [config]="chartConfig">
</wa-scatter-chart>

API Reference

Styling