Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@covalent/charts

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@covalent/charts

Teradata UI Platform Charts Module

  • 0.10.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

td-charts

<td-charts> is a directive for Ng2 + D3 V4 Chart. This is a parent element and all the charts would be rendered inside this.

API Summary

Properties:

NameTypeDescription
title?stringSets the Chart Title
chartHeight?stringSets the height of the chart
shadow?booleanFlag to enable shadows in chart
shadowDepth?array[]Set the parameters for shadowDepth (size, y offset, x offset, blur)
shadowColor?stringSets shadow color for the charts (rgba preferred)
fillOpacity?numberSets opacity for the charts
margin?IChartMarginSets SVG margin (top, right, bottom, left)

Setup

Import the [CovalentChartsModule] using the forRoot() method in your NgModule:

import { CovalentChartsModule } from '@covalent/charts';
@NgModule({
  imports: [
    CovalentChartsModule.forRoot(),
    ...
  ],
  ...
})
export class MyModule {}

Usage

Example for HTML usage:

<td-charts title="Sales Bar/Line Combo Chart"
         [margin]="{top: 50, bottom: 50}"
         chartHeight="450"
         [shadow]="true"
         [shadowDepth]="['125%', 2, 0, 2]"
         shadowColor="rgba(0, 0, 0, 0.54)"
         fillOpacity="0.95">
 <td-axis-x [link]="chartLine1" [ticks]="true" [show]="true" [grid]="false" legend="Day Offset"></td-axis-x>
 <td-axis-y-left [link]="chartLine1" [ticks]="true" [show]="true" [grid]="false" legend="Sales"></td-axis-y-left>
 <td-axis-y-right [link]="chartBar1" [ticks]="true" [show]="true" [grid]="true" legend="Sales 2"></td-axis-y-right>
 <td-chart-bar #chartBar1 [colors]="['amber', 'orange']"
               dataSrc="platform/charts/chart-line/datatime.csv"
               [padding]="0.1"
               bottomAxis="date"
               columns="close"
               titles="close"
               [transition]="true"
               transitionDuration="2050"
               transitionDelay="5000">
 </td-chart-bar>
 <td-chart-line #chartLine1 dataSrc="platform/charts/chart-line/datatime.csv"
               timeSeries="true"
               bottomAxis="date"
               [columns]="['close']"
               [titles]="['close']"
               [colors]="['#03a9f4']"
               [transition]="true"
               transitionDuration="2000"
               transitionDelay="5000">
 </td-chart-line>
</td-charts>

Keywords

FAQs

Package last updated on 02 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc