diff --git a/CHANGELOG.md b/CHANGELOG.md index b77079de..cfe435da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased => [0.7.2] +### Add +- Add Piechart drawing ## [0.7.1] ### Add diff --git a/code_pylint.py b/code_pylint.py index e00efcc0..ea842455 100644 --- a/code_pylint.py +++ b/code_pylint.py @@ -44,7 +44,7 @@ 'too-many-return-statements': 8, 'raise-missing-from': 6, 'consider-merging-isinstance': 6, - 'abstract-method': 25, + 'abstract-method': 26, 'import-outside-toplevel': 7, 'too-many-instance-attributes': 3, 'consider-iterating-dictionary': 4, diff --git a/cypress/e2e/piechart.cy.ts b/cypress/e2e/piechart.cy.ts new file mode 100644 index 00000000..708a9ff9 --- /dev/null +++ b/cypress/e2e/piechart.cy.ts @@ -0,0 +1,19 @@ +import { parseHTML } from '../support/parseHTML'; +import piechartData from '../data_src/piechart.data.json'; + +const FEATURE_NAME = "piechart" + +before(() => { + parseHTML(FEATURE_NAME, piechartData) +}) + +describe('PIECHART CANVAS', function () { + const describeTitle = this.title + ' -- ' + beforeEach(() => { + cy.visit("cypress/html_files/" + FEATURE_NAME + ".html"); + }) + + it("should draw canvas", function () { + cy.compareSnapshot(describeTitle + this.test.title, 0.05); + }) +}) diff --git a/cypress/snapshots/base/graph2d.cy.ts/GRAPH2D CANVAS -- should draw canvas-base.png b/cypress/snapshots/base/graph2d.cy.ts/GRAPH2D CANVAS -- should draw canvas-base.png index c138ce27..2e0d6289 100644 Binary files a/cypress/snapshots/base/graph2d.cy.ts/GRAPH2D CANVAS -- should draw canvas-base.png and b/cypress/snapshots/base/graph2d.cy.ts/GRAPH2D CANVAS -- should draw canvas-base.png differ diff --git a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should add primitive group container in multiplot-base.png b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should add primitive group container in multiplot-base.png index 16ace35e..d7f918d2 100644 Binary files a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should add primitive group container in multiplot-base.png and b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should add primitive group container in multiplot-base.png differ diff --git a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should draw canvas-base.png b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should draw canvas-base.png index c998980c..0b233d69 100644 Binary files a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should draw canvas-base.png and b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should draw canvas-base.png differ diff --git a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should remove primitive group from container in multiplot-base.png b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should remove primitive group from container in multiplot-base.png index 0e0e3098..dcde7e4b 100644 Binary files a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should remove primitive group from container in multiplot-base.png and b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should remove primitive group from container in multiplot-base.png differ diff --git a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should reorder all plots in canvas-base.png b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should reorder all plots in canvas-base.png index 6f668e92..29a8a57e 100644 Binary files a/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should reorder all plots in canvas-base.png and b/cypress/snapshots/base/multiplot.cy.ts/MULTIPLOT CANVAS -- should reorder all plots in canvas-base.png differ diff --git a/cypress/snapshots/base/piechart.cy.ts/PIECHART CANVAS -- should draw canvas-base.png b/cypress/snapshots/base/piechart.cy.ts/PIECHART CANVAS -- should draw canvas-base.png new file mode 100644 index 00000000..7e348aea Binary files /dev/null and b/cypress/snapshots/base/piechart.cy.ts/PIECHART CANVAS -- should draw canvas-base.png differ diff --git a/cypress/templates/piechart.template.html b/cypress/templates/piechart.template.html new file mode 100644 index 00000000..80fb57da --- /dev/null +++ b/cypress/templates/piechart.template.html @@ -0,0 +1,20 @@ + + +
+ + +