0.8.0 • Published 8 months ago

@vizzu/marker-dropshadow v0.8.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Vizzu marker drop shadow plugin

This plugin enables the addition of drop shadows to markers in Vizzu charts.

Install

$ npm install @vizzu/marker-dropshadow

Usage

To use the plugin, simply add it to your Vizzu instance as a feature and configure the marker parameters:

import { MarkerDropshadow } from "@vizzu/marker-dropshadow";

chart.features(new MarkerDropshadow(), true);

chart.animate({
    config: Vizzu.presets.column({
        x: 'Joy factors',
        y: 'Value 2 (+)',
        title: 'Column Chart'
    }),
    style: {
        plot: {
            marker: {
                shadowColor: '#60000060',
                shadowBlur: 9,
                shadowOffsetX: 3,
                shadowOffsetY: 3
            }
        }
    }
})

This plugin adds the following parameters to the style object:

KeyTypeDefault valueDescription
shadowColorString#00000060Hexadecimal rgba color code
shadowBlurNumber9The blur radius.
shadowOffsetXNumber3The horizontal offset of the shadow.
shadowOffsetYNumber3The vertical offset of the shadow.

All parameters are optional, with default values applied if not provided.

License

Copyright © 2021-2023 Vizzu Inc.

Released under the Apache 2.0 License.

0.8.0

8 months ago

0.7.0

9 months ago

0.6.0

9 months ago

0.5.0

10 months ago

0.4.0

12 months ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

2 years ago

0.1.1

2 years ago

0.9.0-alpha.1

2 years ago