2021-11-15 04:57:37 -05:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
-->
|
|
|
|
|
2020-04-16 15:34:30 -04:00
|
|
|
## @superset-ui/legacy-plugin-chart-partition
|
|
|
|
|
2020-11-05 07:59:06 -05:00
|
|
|
[![Version](https://img.shields.io/npm/v/@superset-ui/legacy-plugin-chart-partition.svg?style=flat-square)](https://www.npmjs.com/package/@superset-ui/legacy-plugin-chart-partition)
|
2020-04-16 15:34:30 -04:00
|
|
|
[![David (path)](https://img.shields.io/david/apache-superset/superset-ui-plugins.svg?path=packages%2Fsuperset-ui-legacy-plugin-chart-partition&style=flat-square)](https://david-dm.org/apache-superset/superset-ui-plugins?path=packages/superset-ui-legacy-plugin-chart-partition)
|
|
|
|
|
|
|
|
This plugin provides Partition for Superset.
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
2020-12-10 16:58:10 -05:00
|
|
|
Configure `key`, which can be any `string`, and register the plugin. This `key` will be used to
|
|
|
|
lookup this chart throughout the app.
|
2020-04-16 15:34:30 -04:00
|
|
|
|
|
|
|
```js
|
|
|
|
import PartitionChartPlugin from '@superset-ui/legacy-plugin-chart-partition';
|
|
|
|
|
2020-12-10 16:58:10 -05:00
|
|
|
new PartitionChartPlugin().configure({ key: 'partition' }).register();
|
2020-04-16 15:34:30 -04:00
|
|
|
```
|
|
|
|
|
2020-12-10 16:58:10 -05:00
|
|
|
Then use it via `SuperChart`. See
|
|
|
|
[storybook](https://apache-superset.github.io/superset-ui-plugins/?selectedKind=plugin-chart-partition)
|
|
|
|
for more details.
|
2020-04-16 15:34:30 -04:00
|
|
|
|
|
|
|
```js
|
|
|
|
<SuperChart
|
|
|
|
chartType="partition"
|
|
|
|
width={600}
|
|
|
|
height={600}
|
|
|
|
formData={...}
|
2020-12-29 05:10:39 -05:00
|
|
|
queriesData={[{
|
2020-04-16 15:34:30 -04:00
|
|
|
data: {...},
|
2020-12-29 05:10:39 -05:00
|
|
|
}]}
|
2020-04-16 15:34:30 -04:00
|
|
|
/>
|
2020-12-10 16:58:10 -05:00
|
|
|
```
|