mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Brings in the new donut charts.
Summary: - Donut charts is same as pie chart with few extra options to control size of the hole and to show/hide a big total in it. - Add a new option type to tune a numeric options using a slider/spinner/keyboard. - Add a new option type to tune a numeric options using a slider/keyboard - Add a new .propWithDefault method to ObjObservable to allows to set a default value when options is undefined. - mocha-webdriver's findContent does not work to find content in svg elements. So had to tweak original function into a sister function using .textContent instead. Test Plan: Adds new tests Reviewers: dsagal Reviewed By: dsagal Subscribers: anaisconce, dsagal Differential Revision: https://phab.getgrist.com/D3107
This commit is contained in:
parent
32bb89235e
commit
0b437d1544
@ -1,6 +1,7 @@
|
||||
import * as BaseView from 'app/client/components/BaseView';
|
||||
import {GristDoc} from 'app/client/components/GristDoc';
|
||||
import {consolidateValues, sortByXValues, splitValuesByIndex, uniqXValues} from 'app/client/lib/chartUtil';
|
||||
import {consolidateValues, formatPercent, sortByXValues, splitValuesByIndex,
|
||||
uniqXValues} from 'app/client/lib/chartUtil';
|
||||
import {Delay} from 'app/client/lib/Delay';
|
||||
import {Disposable} from 'app/client/lib/dispose';
|
||||
import {fromKoSave} from 'app/client/lib/fromKoSave';
|
||||
@ -18,23 +19,35 @@ import {cssDragger} from 'app/client/ui2018/draggableList';
|
||||
import {icon} from 'app/client/ui2018/icons';
|
||||
import {linkSelect, menu, menuItem, select} from 'app/client/ui2018/menus';
|
||||
import {nativeCompare} from 'app/common/gutil';
|
||||
import {BaseFormatter} from 'app/common/ValueFormatter';
|
||||
import {decodeObject} from 'app/plugin/objtypes';
|
||||
import {Events as BackboneEvents} from 'backbone';
|
||||
import {Computed, dom, DomElementArg, fromKo, Disposable as GrainJSDisposable, IOption,
|
||||
makeTestId, Observable, styled} from 'grainjs';
|
||||
makeTestId, MultiHolder, Observable, styled} from 'grainjs';
|
||||
import * as ko from 'knockout';
|
||||
import clamp = require('lodash/clamp');
|
||||
import debounce = require('lodash/debounce');
|
||||
import defaults = require('lodash/defaults');
|
||||
import defaultsDeep = require('lodash/defaultsDeep');
|
||||
import {Config, Data, Datum, ErrorBar, Layout, LayoutAxis, Margin} from 'plotly.js';
|
||||
import isNumber = require('lodash/isNumber');
|
||||
import sum = require('lodash/sum');
|
||||
import {Annotations, Config, Data, Datum, ErrorBar, Layout, LayoutAxis, Margin} from 'plotly.js';
|
||||
|
||||
|
||||
let Plotly: PlotlyType;
|
||||
|
||||
// When charting multiple series based on user data, limit the number of series given to plotly.
|
||||
const MAX_SERIES_IN_CHART = 100;
|
||||
const DONUT_DEFAULT_HOLE_SIZE = 0.75;
|
||||
const DONUT_DEFAULT_TEXT_SIZE = 24;
|
||||
|
||||
const testId = makeTestId('test-chart-');
|
||||
|
||||
function isPieLike(chartType: string) {
|
||||
return ['pie', 'donut'].includes(chartType);
|
||||
}
|
||||
|
||||
|
||||
interface ChartOptions {
|
||||
multiseries?: boolean;
|
||||
lineConnectGaps?: boolean;
|
||||
@ -44,6 +57,9 @@ interface ChartOptions {
|
||||
// If "symmetric", one series after each Y series gives the length of the error bars around it. If
|
||||
// "separate", two series after each Y series give the length of the error bars above and below it.
|
||||
errorBars?: 'symmetric' | 'separate';
|
||||
donutHoleSize?: number;
|
||||
showTotal?: boolean;
|
||||
textSize?: number;
|
||||
}
|
||||
|
||||
// tslint:disable:no-console
|
||||
@ -79,11 +95,14 @@ interface PlotData {
|
||||
}
|
||||
|
||||
// Data options to pass to chart functions.
|
||||
interface DataOptions {
|
||||
interface DataOptions extends Data {
|
||||
|
||||
// Allows to set the pie sort option (see: https://plotly.com/javascript/reference/pie/#pie-sort).
|
||||
// Supports pie charts only.
|
||||
sort?: boolean;
|
||||
|
||||
// Formatter to be used for the total inside donut charts.
|
||||
totalFormatter?: BaseFormatter;
|
||||
}
|
||||
|
||||
// Convert a list of Series into a set of Plotly traces.
|
||||
@ -118,6 +137,7 @@ export class ChartView extends Disposable {
|
||||
protected viewSection: ViewSectionRec;
|
||||
protected sortedRows: SortedRowSet;
|
||||
protected tableModel: DataTableModel;
|
||||
protected gristDoc: GristDoc;
|
||||
|
||||
private _chartType: ko.Observable<string>;
|
||||
private _options: ObjObservable<any>;
|
||||
@ -125,6 +145,8 @@ export class ChartView extends Disposable {
|
||||
private _update: () => void;
|
||||
private _resize: () => void;
|
||||
|
||||
private _formatterComp: ko.Computed<BaseFormatter|undefined>;
|
||||
|
||||
public create(gristDoc: GristDoc, viewSectionModel: ViewSectionRec) {
|
||||
BaseView.call(this as any, gristDoc, viewSectionModel);
|
||||
|
||||
@ -138,6 +160,13 @@ export class ChartView extends Disposable {
|
||||
this._chartType = this.viewSection.chartTypeDef;
|
||||
this._options = this.viewSection.optionsObj;
|
||||
|
||||
// Computed that returns the formatter of the first series. This is useful to format the total
|
||||
// within a donut chart.
|
||||
this._formatterComp = this.autoDispose(ko.computed(() => {
|
||||
const field = this.viewSection.viewFields().at(1);
|
||||
return field?.createVisibleColFormatter();
|
||||
}));
|
||||
|
||||
this._update = debounce(() => this._updateView(), 0);
|
||||
|
||||
this.autoDispose(this._chartType.subscribe(this._update));
|
||||
@ -145,6 +174,7 @@ export class ChartView extends Disposable {
|
||||
this.autoDispose(this.viewSection.viewFields().subscribe(this._update));
|
||||
this.listenTo(this.sortedRows, 'rowNotify', this._update);
|
||||
this.autoDispose(this.sortedRows.getKoArray().subscribe(this._update));
|
||||
this.autoDispose(this._formatterComp.subscribe(this._update));
|
||||
}
|
||||
|
||||
public prepareToPrint(onOff: boolean) {
|
||||
@ -208,10 +238,14 @@ export class ChartView extends Disposable {
|
||||
let plotData: PlotData = {data: []};
|
||||
|
||||
const sortSpec = this.viewSection.activeSortSpec.peek();
|
||||
if (this._chartType.peek() === 'pie' && sortSpec?.length) {
|
||||
if (isPieLike(this._chartType.peek()) && sortSpec?.length) {
|
||||
dataOptions.sort = false;
|
||||
}
|
||||
|
||||
if (this._chartType.peek() === 'donut') {
|
||||
dataOptions.totalFormatter = this._formatterComp.peek();
|
||||
}
|
||||
|
||||
if (!options.multiseries) {
|
||||
plotData = chartFunc(series, options, dataOptions);
|
||||
} else if (series.length > 1) {
|
||||
@ -419,7 +453,7 @@ export class ChartConfig extends GrainJSDisposable {
|
||||
|
||||
// The label to show for the first field in the axis configurator.
|
||||
private _firstFieldLabel = Computed.create(this, fromKo(this._section.chartTypeDef), (
|
||||
(_use, chartType) => chartType === 'pie' ? 'LABEL' : 'X-AXIS'
|
||||
(_use, chartType) => isPieLike(chartType) ? 'LABEL' : 'X-AXIS'
|
||||
));
|
||||
|
||||
// A computed that returns `this._section.chartTypeDef` and that takes care of removing the group
|
||||
@ -429,7 +463,7 @@ export class ChartConfig extends GrainJSDisposable {
|
||||
return this._gristDoc.docData.bundleActions('switched chart type', async () => {
|
||||
await this._section.chartTypeDef.saveOnly(val);
|
||||
// When switching chart type to 'pie' makes sure to remove the group data option.
|
||||
if (val === 'pie') {
|
||||
if (isPieLike(val)) {
|
||||
await this._setGroupDataColumn(-1);
|
||||
this._groupDataForce.set(false);
|
||||
}
|
||||
@ -447,11 +481,14 @@ export class ChartConfig extends GrainJSDisposable {
|
||||
|
||||
if (this._section.parentKey() !== 'chart') { return null; }
|
||||
|
||||
const owner = new MultiHolder();
|
||||
return [
|
||||
dom.autoDispose(owner),
|
||||
cssRow(
|
||||
select(this._chartType, [
|
||||
{value: 'bar', label: 'Bar Chart', icon: 'ChartBar' },
|
||||
{value: 'pie', label: 'Pie Chart', icon: 'ChartPie' },
|
||||
{value: 'donut', label: 'Donut Chart', icon: 'ChartDonut' },
|
||||
{value: 'area', label: 'Area Chart', icon: 'ChartArea' },
|
||||
{value: 'line', label: 'Line Chart', icon: 'ChartLine' },
|
||||
{value: 'scatter', label: 'Scatter Plot', icon: 'ChartLine' },
|
||||
@ -459,12 +496,29 @@ export class ChartConfig extends GrainJSDisposable {
|
||||
]),
|
||||
testId("type"),
|
||||
),
|
||||
dom.maybe((use) => use(this._section.chartTypeDef) !== 'pie', () => [
|
||||
dom.maybe((use) => !isPieLike(use(this._section.chartTypeDef)), () => [
|
||||
// These options don't make much sense for a pie chart.
|
||||
cssCheckboxRowObs('Group data', this._groupData),
|
||||
cssCheckboxRow('Invert Y-axis', this._optionsObj.prop('invertYAxis')),
|
||||
cssCheckboxRow('Log scale Y-axis', this._optionsObj.prop('logYAxis')),
|
||||
]),
|
||||
dom.maybe((use) => use(this._section.chartTypeDef) === 'donut', () => [
|
||||
cssSlideRow(
|
||||
'Hole Size',
|
||||
Computed.create(owner, (use) => use(this._optionsObj.prop('donutHoleSize')) ?? DONUT_DEFAULT_HOLE_SIZE),
|
||||
(val: number) => this._optionsObj.prop('donutHoleSize').saveOnly(val),
|
||||
testId('option')
|
||||
),
|
||||
cssCheckboxRow('Show Total', this._optionsObj.prop('showTotal')),
|
||||
dom.maybe(this._optionsObj.prop('showTotal'), () => (
|
||||
cssNumberWithSpinnerRow(
|
||||
'Text Size',
|
||||
Computed.create(owner, (use) => use(this._optionsObj.prop('textSize')) ?? DONUT_DEFAULT_TEXT_SIZE),
|
||||
(val: number) => this._optionsObj.prop('textSize').saveOnly(val),
|
||||
testId('option')
|
||||
)
|
||||
))
|
||||
]),
|
||||
dom.maybe((use) => use(this._section.chartTypeDef) === 'line', () => [
|
||||
cssCheckboxRow('Connect gaps', this._optionsObj.prop('lineConnectGaps')),
|
||||
cssCheckboxRow('Show markers', this._optionsObj.prop('lineMarkers')),
|
||||
@ -622,6 +676,105 @@ export class ChartConfig extends GrainJSDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
// Row for a numeric option. User can change value using spinners or directly using keyboard. In
|
||||
// case of invalid values, the field reverts to the saved one.
|
||||
function cssNumberWithSpinnerRow(label: string, value: Computed<number>, save: (val: number) => Promise<void>,
|
||||
...args: DomElementArg[]) {
|
||||
const minValue = 1;
|
||||
let input: HTMLInputElement;
|
||||
|
||||
// Set the input's value to the value that's saved on the server.
|
||||
function reset() {
|
||||
input.value = value.get() + "px";
|
||||
}
|
||||
|
||||
async function onChange(val: string, func: (val: number) => number = (v) => v) {
|
||||
let fvalue = parseFloat(val);
|
||||
if (isFinite(fvalue)) {
|
||||
fvalue = clamp(func(fvalue), minValue, Infinity);
|
||||
await save(fvalue);
|
||||
}
|
||||
// Reset is needed if value were not a valid number.
|
||||
reset();
|
||||
}
|
||||
|
||||
return cssRow(
|
||||
cssRowLabel(label),
|
||||
cssNumberWithSpinner(
|
||||
input = cssNumberInput(
|
||||
{type: 'text'},
|
||||
dom.prop('value', (use) => use(value) + "px"),
|
||||
dom.on('change', (_ev, el) => onChange(el.value)),
|
||||
dom.onKeyDown({
|
||||
ArrowDown: (_ev, el) => onChange(el.value, (val) => val - 1),
|
||||
ArrowUp: (_ev, el) => onChange(el.value, (val) => val + 1),
|
||||
}),
|
||||
),
|
||||
|
||||
// We add spinners as overlay in order to support showing the unit 'px' next to the value.
|
||||
cssSpinners(
|
||||
'input',
|
||||
{type: 'number', step: '1', min: String(minValue)},
|
||||
dom.prop('value', value),
|
||||
dom.on('change', (_ev, el) => onChange(el.value)),
|
||||
),
|
||||
),
|
||||
...args
|
||||
);
|
||||
}
|
||||
|
||||
// Row for a numeric option that leaves between 0 and 1. User can change value using a slider, or
|
||||
// spinners or by directly using keyboard. Value is shown as percent. If user enter an invalid
|
||||
// value, field reverts to the saved value.
|
||||
function cssSlideRow(label: string, value: Computed<number>, save: (val: number) => Promise<void>,
|
||||
...args: DomElementArg[]) {
|
||||
let input: HTMLInputElement;
|
||||
|
||||
// Set the input's value to the value that's saved on the server.
|
||||
function reset() {
|
||||
input.value = formatPercent(value.get());
|
||||
}
|
||||
|
||||
async function onChange(val: string, func: (val: number) => number = (v) => v) {
|
||||
let fvalue = parseFloat(val);
|
||||
if (isFinite(fvalue)) {
|
||||
fvalue = clamp(func(fvalue), 0, 99) / 100;
|
||||
await save(fvalue);
|
||||
}
|
||||
// Reset is needed if value were not a valid number.
|
||||
reset();
|
||||
}
|
||||
|
||||
return cssRow(
|
||||
cssRowLabel(label),
|
||||
cssRangeInput(
|
||||
{type: 'range', min: "0", max: "1", step: "0.01"},
|
||||
dom.prop('value', value),
|
||||
dom.on('change', (_ev, el) => save(Number(el.value)))
|
||||
),
|
||||
cssNumberWithSpinner(
|
||||
input = cssNumberInput(
|
||||
{type: 'text'},
|
||||
dom.prop('value', (use) => formatPercent(use(value))),
|
||||
dom.on('change', (_ev, el) => onChange(el.value)),
|
||||
dom.onKeyDown({
|
||||
ArrowDown: (_ev, el) => onChange(el.value, (val) => val - 1),
|
||||
ArrowUp: (_ev, el) => onChange(el.value, (val) => val + 1),
|
||||
}),
|
||||
),
|
||||
|
||||
// We add spinners as overlay in order to support showing the unit '%' next to the value.
|
||||
cssSpinners(
|
||||
'input',
|
||||
{type: 'number', step: '0.01', min: '0', max: '0.99'},
|
||||
dom.prop('value', value),
|
||||
dom.on('change', (_ev, el) => save(Number(el.value))),
|
||||
)
|
||||
),
|
||||
...args
|
||||
);
|
||||
}
|
||||
|
||||
function cssCheckboxRow(label: string, value: KoSaveableObservable<unknown>, ...args: DomElementArg[]) {
|
||||
return cssCheckboxRowObs(label, fromKoSave(value), ...args);
|
||||
}
|
||||
@ -633,7 +786,7 @@ function cssCheckboxRowObs(label: string, value: Observable<boolean>, ...args: D
|
||||
);
|
||||
}
|
||||
|
||||
function basicPlot(series: Series[], options: ChartOptions, dataOptions: Partial<Data>): PlotData {
|
||||
function basicPlot(series: Series[], options: ChartOptions, dataOptions: Data): PlotData {
|
||||
trimNonNumericData(series);
|
||||
const errorBars = extractErrorBars(series, options);
|
||||
|
||||
@ -722,6 +875,39 @@ export const chartTypes: {[name: string]: ChartFunc} = {
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
donut(series: Series[], options: ChartOptions, dataOptions: DataOptions = {}): PlotData {
|
||||
const hole = isNumber(options.donutHoleSize) ? options.donutHoleSize : DONUT_DEFAULT_HOLE_SIZE;
|
||||
const annotations: Array<Partial<Annotations>> = [];
|
||||
const plotData: PlotData = chartTypes.pie(series, options, {...dataOptions, hole});
|
||||
|
||||
function format(val: number) {
|
||||
if (dataOptions.totalFormatter) {
|
||||
return dataOptions.totalFormatter.format(val);
|
||||
}
|
||||
return String(val);
|
||||
}
|
||||
|
||||
if (options.showTotal) {
|
||||
annotations.push({
|
||||
text: format(
|
||||
series.length > 1 ?
|
||||
sum(series[1].values.filter(isNumber)) :
|
||||
plotData.data[0].labels!.length,
|
||||
),
|
||||
showarrow: false,
|
||||
font: {
|
||||
size: options.textSize ?? DONUT_DEFAULT_TEXT_SIZE,
|
||||
}
|
||||
} as any);
|
||||
}
|
||||
return defaultsDeep(
|
||||
plotData,
|
||||
{layout: {annotations}}
|
||||
);
|
||||
|
||||
},
|
||||
|
||||
kaplan_meier(series: Series[]): PlotData {
|
||||
// For this plot, the first series names the category of each point, and the second the
|
||||
// survival time for that point. We turn that into as many series as there are categories.
|
||||
@ -838,3 +1024,41 @@ const cssHintRow = styled('div', `
|
||||
margin: -4px 16px 8px 16px;
|
||||
color: ${colors.slate};
|
||||
`);
|
||||
|
||||
const cssRangeInput = styled('input', `
|
||||
input& {
|
||||
width: 82px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
`);
|
||||
|
||||
const cssNumberWithSpinner = styled('div', `
|
||||
position: relative;
|
||||
`);
|
||||
|
||||
const cssNumberInput = styled('input', `
|
||||
width: 55px;
|
||||
`);
|
||||
|
||||
|
||||
const cssSpinners = styled('input', `
|
||||
width: 19px;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 1px;
|
||||
border: none;
|
||||
outline: none;
|
||||
appearance: none;
|
||||
-moz-appearance: none;
|
||||
visibility: hidden;
|
||||
|
||||
.${cssNumberWithSpinner.className}:hover & {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* needed for chrome to show spinners, indeed the cursor could be outside of spinners' input
|
||||
element */
|
||||
&[type=number]::-webkit-inner-spin-button {
|
||||
opacity: 1;
|
||||
}
|
||||
`);
|
||||
|
@ -85,3 +85,7 @@ export function consolidateValues(series: Array<{values: Datum[]}>, xvalues: Dat
|
||||
}
|
||||
return series;
|
||||
}
|
||||
|
||||
export function formatPercent(val: number) {
|
||||
return Math.floor(val * 100) + " %";
|
||||
}
|
||||
|
@ -552,6 +552,9 @@ export const cssRow = styled('div', `
|
||||
&-top-space {
|
||||
margin-top: 24px;
|
||||
}
|
||||
&-disabled {
|
||||
color: ${colors.slate};
|
||||
}
|
||||
`);
|
||||
|
||||
export const cssButtonRow = styled(cssRow, `
|
||||
|
@ -1,5 +1,6 @@
|
||||
export type IconName = "ChartArea" |
|
||||
"ChartBar" |
|
||||
"ChartDonut" |
|
||||
"ChartKaplan" |
|
||||
"ChartLine" |
|
||||
"ChartPie" |
|
||||
@ -100,6 +101,7 @@ export const IconList: IconName[] = ["ChartArea",
|
||||
"ChartBar",
|
||||
"ChartKaplan",
|
||||
"ChartLine",
|
||||
"ChartDonut",
|
||||
"ChartPie",
|
||||
"TypeCard",
|
||||
"TypeCardList",
|
||||
|
@ -1,6 +1,7 @@
|
||||
:root {
|
||||
--icon-ChartArea: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMuMTkwOTgzMDEsOCBMNS4wNTI3ODY0LDQuMjc2MzkzMiBDNS4xODcyODU0NCw0LjAwNzM5NTEyIDUuNTI3MTExODEsMy45MTcxNDkzMyA1Ljc3NzM1MDEsNC4wODM5NzQ4NSBMMTEuMzMxNjQ1NCw3Ljc4NjgzODM3IEwxNS4wNjU4Nzg0LDEuMjUxOTMwNTMgQzE1LjIwMjg4MzQsMS4wMTIxNzE4MSAxNS41MDgzMTA3LDAuOTI4ODczNDQ0IDE1Ljc0ODA2OTUsMS4wNjU4Nzg0MyBDMTUuOTg3ODI4MiwxLjIwMjg4MzQxIDE2LjA3MTEyNjYsMS41MDgzMTA3NSAxNS45MzQxMjE2LDEuNzQ4MDY5NDcgTDExLjkzNDEyMTYsOC43NDgwNjk0NyBDMTEuNzkwMzk3NCw4Lj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DM3Njk0OTllLTE0LDkgQzguNDM3Njk0OTllLTE0LDUuOTQwODEwMzkgMS45ODA0ODY2OSwzLjI2MzQ4MDA1IDQuODQ2Mzc2MTUsMi4zMzgxODUyMSBDNS4xMDkxNjE0LDIuMjUzMzQxMSA1LjM5MDk3MDY4LDIuMzk3NTkwOSA1LjQ3NTgxNDc5LDIuNjYwMzc2MTUgQzUuNTYwNjU4OSwyLjkyMzE2MTQgNS40MTY0MDkxLDMuMjA0OTcwNjggNS4xNTM2MjM4NSwzLjI4OTgxNDc5IEMyLjY5Nzc1MTc3LDQuMDgyNzI5NDQgMSw2LjM3Nzg0MzI0IDEsOSBDMSwxMi4zMTM4NTc2IDMuNjg2MTQyMzcsMTUgNywxNSBDOC4zNTc3NDM0MywxNSA5LjY0NDc4MTQsMTQuNTQ4NTMzNSAxMC42OTIxMTU2LDEzLjczMDAzNjYgWiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+');
|
||||
|
56
static/ui-icons/Charts/ChartDonut.svg
Normal file
56
static/ui-icons/Charts/ChartDonut.svg
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="16px"
|
||||
height="16px"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1"
|
||||
id="svg874"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs878" />
|
||||
<!-- Generator: Sketch 52.5 (67469) - http://www.bohemiancoding.com/sketch -->
|
||||
<title
|
||||
id="title868">Icons / Charts / ChartPie</title>
|
||||
<desc
|
||||
id="desc870">Created with Sketch.</desc>
|
||||
<g
|
||||
id="Icons-/-Charts-/-ChartPie"
|
||||
stroke="none"
|
||||
stroke-width="1"
|
||||
fill="none"
|
||||
fill-rule="evenodd">
|
||||
<circle
|
||||
style="fill:none;stroke:#1c1303;stroke-width:1;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path1001"
|
||||
cx="8"
|
||||
cy="8"
|
||||
r="7.5" />
|
||||
<circle
|
||||
style="fill:none;stroke:#1c1303;stroke-width:1;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="circle1473"
|
||||
cx="8"
|
||||
cy="8"
|
||||
r="5" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="M 7.8840618,0.59987427 V 3.3421567"
|
||||
id="path1508" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 11.611852,11.526156 1.885319,1.885319"
|
||||
id="path1510" />
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata1113">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:title>Icons / Charts / ChartPie</dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue
Block a user