Граф коммитов

49 Коммитов

Автор SHA1 Сообщение Дата
Ramil Minyukov f11d3b7101
Gradient scale (#886)
* Add auto update property for gradient scales

* Update label

* Update styles

* Added numerical color legend orientation

* Removed 'Add legend' button for boolean scales

* Clean code

* Added legend height and width

* Updated migrator

* Added const value and update migrator

Co-authored-by: Ramil Minyukov (Akvelon INC) <v-rminyukov@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>
2022-01-25 06:08:04 -08:00
Ramil Minyukov (Akvelon INC) 6a54e95899 Updated version 2.1.4 2022-01-17 17:32:53 +03:00
Ramil Minyukov b1201a6188
Apply unit testing to the latest master (#747)
* Apply unit testing to the latest master

* Updated browser

* Updated browser

* Added babel-loader

* Added pre-commit hook

* Added ts-node

* Added puppeteer

* Added karma-coverage

* Added raw-loader

* Update snapshot

* Udpated tests

* Removed done

* Update serialize

* Removed unused import

* Updated tolerance

* Updated tolerance

* Updated tolerance and added round numbers

* Added logging

* Change compare order

* Changed compare order

* Updated path 'd' parser

* Added types

* Updated tests order

* Updated tests order

* Added error wrepper

* Updated snapshoot

* Changed test order

* Added docker image

* Update runnner

* Updated github runnner

* Uncomment tests

* Updated __snapshots__

* Added plotsegment axis test

* Added polar plot segment unit tests

* Updated docker file

* Updated tests

* Updated application tests

* Updated application tests

* Updated application tests

* Added new chart tests

* Removed population test

* Updated snapshot

* Updated build.js file

* Updated build.js

* Updated test app version

* Fixed comment

Co-authored-by: Ramil Minyukov (Akvelon INC) <v-rminyukov@microsoft.com>
Co-authored-by: Ilfat Galiev <zBritva@users.noreply.github.com>
Co-authored-by: bongshin <bongshin@microsoft.com>
2022-01-17 06:11:18 -08:00
Ramil Minyukov 51f4f55dad
Minor issues (#864)
* Fixed minor axis scrolling issues

* Removed log

* Added unique key for identical data

* Fixed scrolling windowSize issue

* Fixed save order in axis

* Fixed data inputExpression

* Fixed date column

* Fixed issue with numeric axis (Initial scroll position)

* Fixed issue with scroll bar

* Removed log

* Remove unused code

* Remove unused code

* Remove commented code

* Updated version

Co-authored-by: Ramil Minyukov (Akvelon INC) <v-rminyukov@microsoft.com>
2021-12-07 06:41:39 -08:00
Ramil Minyukov 337fc35d93
Sort by another column (#842)
* Added Order by menu

* Updated sorting algorithm

* Cleaned code

* Fixed tests

* Fixed test

* Updated reorder panel

* Updated migrator

* Clean code

* Updated migrator

* Fixed default value

* Fixed eslint rule and removed import

* Updated migrator

* Removed comment

Co-authored-by: Ramil Minyukov (Akvelon INC) <v-rminyukov@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>
2021-12-01 15:35:15 -08:00
Ramil Minyukov (Akvelon INC) af2bf02593 Updated version 2021-11-02 17:11:15 +03:00
Ilfat Galiev 6e8753fb3f
Increase version number to 2.1.0 (#650)
Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
2021-08-09 11:32:55 -07:00
Ilfat Galiev 293710c8a6
Merge branch 'master' into master_fluent_ui (#635)
* Merge branch 'master' into master_fluent_ui

* Update sass package to 1.37.5

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
2021-08-06 05:07:41 -07:00
Ilfat Galiev 29581f0755
Fluent UI: merge master to branch (#591)
* Fix plotsegment axis names (#480)

* Fix prettyNumber function (#482)

* Fix axis. Update title of data mapping dialog (#487)

* Fix axis data rebinding

* Update mapping data dialog titles

* Change the first column header (#488)

* Disable sorting property of plot segment if auto ranges was disabled (#489)

Co-authored-by: bongshin <bongshin@microsoft.com>

* Set correct table name (#490)

* Update data axis range values on replacing dataset (#486)

* Update data axis range values on replacing dataset

* Fix axis data rebinding

* Rework code

* Get get data kind by type on updating axes

* Update visual style of guide coordinator (#491)

* Update visual style of guide coordinator

* Remove unused attributes

* Change line style

* Update styles

Co-authored-by: bongshin <bongshin@microsoft.com>

* Guide rollback (#495)

* Rollback guide coordinator configuration

* Increase version number to 2.0.3

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Format validator widget for attributes editor (#492)

* Format validator widget for attributes editor

* Set regexp as constant

* Add "(auto)", "(none)" to strings

* Fix tests

* Wrap regex to function

Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix regex (#497)

* Fix regex

* Add test

* Fix scale editor bug (#498)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix rendering text twice when text wrap is enabled for axis (#500)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Tslint => eslint (#496)

* Replace Array<> by []

* Replace "as" cast by "<>"

* Add eslint

* Fix eslint issues

* Update code

* Fix merge issues

* Fix worker

* react-hooks plugin for eslint. Fix warnings

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* View configuration (#502)

* Expose main view config

* Change save button state

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Add Segoe UI into fonts list (#504)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Remove tslint config (#506)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Allow map any data type to string (#501)

* Allow map any data type to string

* Import DataType

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Don't render guide coordinator handles in plot segment (#508)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix svg headers (#509)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Rounded border (#503)

* Rounded border of canvas view

* Unify rect path function

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Show report issue button for visual (#507)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Save old name/id of expression to hold binding marks to those axis points (#513)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Set default value of interactivity properties for marks (#514)

* Set default value of interactivity properties for marks

* Set guide coordinator guides default count to 2

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix app initialization (#515)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix saving tick format for axes (#516)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Add checks for properties (#517)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Quantile Expressions and Helpers (#511)

Added a `quantile` function, which accepts a percentage value as input, plus the field array, which can be used to calculate quantiles wherever expressions are used.

Additionally, I've added the following functions as shortcuts (plus helpers):

- `quartile1` (1st Quartile)
- `quartile3` (3rd Quartile)
- `iqr` (Inter-Quartile Range)

Resolves #499

* Set Overlap sublayout to the end of sublayout list (#518)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Link anchors (#520)

* Add link anchors to line object

* Bind links to glyph center if no marks with anchor

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Display date instead number in scale editor (#524)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Set Segoe UI as default font (#525)

* Set Segoe UI as default font

* Set default font size 12 for text and text box

* Fix unit tests

* Add constant for default font size

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Save order from template for axes categorical values (#522)

* Save order from template for axes categorical values

* Fix issues

* Keep sorting order on updating plot segments

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix updating domain for scales (#526)

* Fix updating domain for scales. Change layout of scale editor and labels. Set defaults for data axis.

* Update comment

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Replace constant strings by strings object (#493)

* Replace constant strings by strings object

* Fix updating domain for scales. Change layout of scale editor and labels. Set defaults for data axis.

* Update comment

* Add string constants for scale and axis

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Expose nested chart columns on export (#527)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Bump lodash from 4.17.19 to 4.17.21 (#529)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix creating the new scale (#530)

* Fix creating the new scale

* Fix reset of scales

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Set defaults for data axis (#532)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Remove default attributes for data axis (#533)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Exclude attributes on comparing chart states (#531)

* Exclude attributes on comparing chart states

* Remove commented code

* Remove unused import

* Add constant for approximation. Check constraints by expect_deep_approximately_equals

* Add comment for normalizeDataExpression method

* Add comment

* Fix rawExpressions for axis data bindings

* Fix height of canvas toolbar

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Include valueIndex property of scale as null into template (#538)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Change anchor element for color picker for empty property (#539)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Set default aggregation function "first" for categorical values (#536)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix guide mapping (#540)

* Fix data mapping to guide value

* Fix attribute mapping on drag guide in mark editor

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Add getState, setState to History Mananger. Remove some intermediate states from history (#542)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Don't reset history manager on import template or dataset (#547)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix size of drop area indicator for mapping editor (#551)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Fixes (#552)

* Set border for color picker in chart attribute

* Update data kind on changing type

* Scroll to attribute field on opening editor from Scale editor

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Change default color from grey to blue (#543)

* Change default color from grey to blue

* Change color to skyblue

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix popup panel position for attributes panel (#555)

* Fix popup panel position for attributes panel

* Fix popup anchor container

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Call chart migrator on launching nested chart editor (#558)

* Call chart migrator on launching nested chart editor

* Remove unused variables.

* Set null for categories property of axis

* Remove replaceUndefinedByNull

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Rollback changes (#562)

* Revert "Remove replaceUndefinedByNull"

This reverts commit 186544cd91.

* Replace nulls for polar plot segment

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix date format expression check (#567)

* Fix date format expression check

* Apply format for date type with categorical date kind

* Remove unused code

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Date axis fixes (#571)

* Fix raw expression for data axis on updating

* Assume null value equals to undefined on checking changes to reduce false alerts

* Fix updating axis with log scale

* Exclude negative values for Log scale

* Keep current chart state on updating the dataset

* Fix initialization of chart state

* Check expression before updating plotsegment axis

* Call UpdatePlotSegments action before save

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Set width for glyph in data axis (#573)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Add sky blue colors to Power BI color palette (#574)

* Reset default color to match with ColorBrewer palette

* Revert "Reset default color to match with ColorBrewer palette"

This reverts commit 18dbe5f1fe.

* Add sky blue colors to Power BI Color palette

* Fix color picker alignment in legend text color picker and scale editor

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Revert "Set width for glyph in data axis (#573)" (#579)

This reverts commit eaefcc1d31.

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix launching nested chart editor (#588)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix nested chart state initialization (#590)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

Co-authored-by: bongshin <bongshin@microsoft.com>
Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: Daniel Marsh-Patrick <daniel@coacervo.co>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-28 06:52:35 -07:00
Ilfat Galiev 82223016f9
Fluent UI (#541)
* Fix plotsegment axis names (#480)

* Fix prettyNumber function (#482)

* Fix axis. Update title of data mapping dialog (#487)

* Fix axis data rebinding

* Update mapping data dialog titles

* Change the first column header (#488)

* Disable sorting property of plot segment if auto ranges was disabled (#489)

Co-authored-by: bongshin <bongshin@microsoft.com>

* Set correct table name (#490)

* Update data axis range values on replacing dataset (#486)

* Update data axis range values on replacing dataset

* Fix axis data rebinding

* Rework code

* Get get data kind by type on updating axes

* Update visual style of guide coordinator (#491)

* Update visual style of guide coordinator

* Remove unused attributes

* Change line style

* Update styles

Co-authored-by: bongshin <bongshin@microsoft.com>

* Guide rollback (#495)

* Rollback guide coordinator configuration

* Increase version number to 2.0.3

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Format validator widget for attributes editor (#492)

* Format validator widget for attributes editor

* Set regexp as constant

* Add "(auto)", "(none)" to strings

* Fix tests

* Wrap regex to function

Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix regex (#497)

* Fix regex

* Add test

* Fix scale editor bug (#498)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix rendering text twice when text wrap is enabled for axis (#500)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Tslint => eslint (#496)

* Replace Array<> by []

* Replace "as" cast by "<>"

* Add eslint

* Fix eslint issues

* Update code

* Fix merge issues

* Fix worker

* react-hooks plugin for eslint. Fix warnings

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* View configuration (#502)

* Expose main view config

* Change save button state

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Add Segoe UI into fonts list (#504)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Remove tslint config (#506)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Allow map any data type to string (#501)

* Allow map any data type to string

* Import DataType

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Don't render guide coordinator handles in plot segment (#508)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix svg headers (#509)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Rounded border (#503)

* Rounded border of canvas view

* Unify rect path function

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Show report issue button for visual (#507)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Save old name/id of expression to hold binding marks to those axis points (#513)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Set default value of interactivity properties for marks (#514)

* Set default value of interactivity properties for marks

* Set guide coordinator guides default count to 2

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Fix app initialization (#515)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix saving tick format for axes (#516)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Add checks for properties (#517)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Quantile Expressions and Helpers (#511)

Added a `quantile` function, which accepts a percentage value as input, plus the field array, which can be used to calculate quantiles wherever expressions are used.

Additionally, I've added the following functions as shortcuts (plus helpers):

- `quartile1` (1st Quartile)
- `quartile3` (3rd Quartile)
- `iqr` (Inter-Quartile Range)

Resolves #499

* Set Overlap sublayout to the end of sublayout list (#518)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Link anchors (#520)

* Add link anchors to line object

* Bind links to glyph center if no marks with anchor

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Display date instead number in scale editor (#524)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Set Segoe UI as default font (#525)

* Set Segoe UI as default font

* Set default font size 12 for text and text box

* Fix unit tests

* Add constant for default font size

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Save order from template for axes categorical values (#522)

* Save order from template for axes categorical values

* Fix issues

* Keep sorting order on updating plot segments

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Update yarn.lock

* Fix updating domain for scales (#526)

* Fix updating domain for scales. Change layout of scale editor and labels. Set defaults for data axis.

* Update comment

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Replace constant strings by strings object (#493)

* Replace constant strings by strings object

* Fix updating domain for scales. Change layout of scale editor and labels. Set defaults for data axis.

* Update comment

* Add string constants for scale and axis

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Expose nested chart columns on export (#527)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Bump lodash from 4.17.19 to 4.17.21 (#529)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix creating the new scale (#530)

* Fix creating the new scale

* Fix reset of scales

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

* Set defaults for data axis (#532)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Remove default attributes for data axis (#533)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Exclude attributes on comparing chart states (#531)

* Exclude attributes on comparing chart states

* Remove commented code

* Remove unused import

* Add constant for approximation. Check constraints by expect_deep_approximately_equals

* Add comment for normalizeDataExpression method

* Add comment

* Fix rawExpressions for axis data bindings

* Fix height of canvas toolbar

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Include valueIndex property of scale as null into template (#538)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Change anchor element for color picker for empty property (#539)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Set default aggregation function "first" for categorical values (#536)

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>

* Fix guide mapping (#540)

* Fix data mapping to guide value

* Fix attribute mapping on drag guide in mark editor

Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: bongshin <bongshin@microsoft.com>

Co-authored-by: bongshin <bongshin@microsoft.com>
Co-authored-by: Ilfat Galiev <v-igaliev@microsoft.com>
Co-authored-by: Daniel Marsh-Patrick <daniel@coacervo.co>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-20 08:07:23 -07:00
Ilfat Galiev beac5dabe5
Fluent UI (#477)
* Replace text input, number input, slider

* Fluent UI Manager

* Add margin to color display

* Init basic icons

* Add checkbox

* Revert "Replace text input, number input, slider"

This reverts commit 6397041fc7.

* Add Fluent UI based components

* Update icon names for Rect, Legend objects

* Set color display border to black

* Add alignment icons from Office UI Fabric

* Remove unused code

* Add styled-components

* Fix input expression

* Update view for mapping editor

* Update clear button, set button, inputSelect

* Update "Conditioned by" component

* Use old components for Canvas toolbar

* Update inputNumber

* Update text editor in value editor

* Remove unused reports

* Update inputBoolean

* Set DropZoneView height to 32px

* Update yarn.lock

* Add labels to components

* Add Fluent UI labels support

* Fix rect component attributes panel layout

* Fix axis style attributes panel

* Fix PlotSegment (cartesian) attributes panel layout

* Fix Legend attributes panel layout

* Fix PlotSegment (polar), Polar guide coordinator attributes panel layout

* Fix Text/TextBox attributes panel layout

* Fix Dataaxis attributes panel layout

* Fix Link attributes panel layout

* Fix PlotSegment (curve) attributes panel layout

* Fix Chart attributes panel layout

* Fix axis style attribute panel

* Fix data expression widgets

* Fix mappingEditor displaying text

* Fix layout of attributes headers

* Update orderByWidget

* Update Filter by, Group by buttons

* Fix canvas toolbar select component background

* Fix merge issue

* Fix scale export properties layout

* Change icon names to match with Fluent UI lib icons

* Fix interactivity options layout

* Update inputDate

* Update Filter by, Group by buttons layout of plot segment

* Update inputNumer layout

* Fix layout of Gap property for Grid

* Add icons to "Group by" and "Filter by" buttons

* Add MainContext provider. Main toolbar

* Update data binding icon of mapping editor

* Decrease toolbar height

* Add custom icons

* Fix icon colors

* Fix scaffold buttons

* Fix buttons color on dropdown menu

* Merge master

* Update hammer initialization on changing tool

* Fix polar guide coordinator icon

* Align context menu property of chart object

* Fix attribute panels header

* Recreate hammer instance on changing tool mode

* Set default contextMenu property for default Chart object

* Set default values for interactivity properties of objects

* Set value for checkbox component

* Fix error on canvas resizing

* Set max width for legend dialog

* Set normal font weight to labels

* Add margins to axis header labels

* Fix reorder widget position

* Set packing icon stroke color

* Remove unused imports

* Set MultiObjectButton icons stroke color

* Fix import

* Remove context provider

* Fix active element background in attribute panel

* Remove comment

* Fix flipping property widget

* Fix context menu of data selector

* Fix Undo/Redo buttons states

* Fix popup widgets alignment

* Fix label of inputs

* Apply getAlignment for color selector popup window

* Hide overflowed text in input

* Fix text input for mapping editor

* Fix data binding from button

* Remove value properties

* Fix mapping popup position for scale editor on click text box

* Fix linear scale editor layout. Fix SpinButton label font wright

* Update FLuent UI library

* Fix spin value changing

* Add key properties to React components

* Fix set state error in ImportDataView component

* Fix converting color to RGB
2021-04-05 06:53:08 -07:00
Ilfat Galiev ac7f4f9a60
Update types for plot segment, text, data axis (#456)
* Update types for plot segment, text, data axis

* Update sublayout types constants to enum

* Replace xData, yData, axis properties names constants by enum

* Conflicts:
	src/app/stores/app_store.ts

* Added missed import

* Fix script for windows env
2021-04-02 08:32:56 -07:00
Ilfat Galiev 9a167d24dc
Allow to prevent flipping rect mark in constraints solver (#471)
* Allow to prevent flipping rect mark in constraints solver

* Add migrator

* Remove comment

Co-authored-by: bongshin <bongshin@microsoft.com>
2021-03-26 11:58:39 -07:00
Dan Marshall e0e32f7051
Polar legends (#435)
* move SnappingElementMapping to index

* use SnappingElementMapping type

* wiring up plot segment to legend dialog

* add cx & cy to plot-segment.polar

* use element snapping for legend

* add ry1, ry2 attrs to polar

* use plugin for cx, cy

* ad r1x, r1y, r2x, r2y

* additional angle2 dimension

* radial polar legend for height

* refactor snapToAttribute

* remove unused snapping guides

* remove comment

* rename attribute arrays

* angular legend

* bump version, add migrator for polar legend

* move terminology to strings

* handle angular domain properly

* check for null plot segment

* remove TODO

Co-authored-by: bongshin <bongshin@microsoft.com>
2021-03-10 06:00:25 -08:00
Ilfat Galiev 404536f05e
Update typedoc (#444) 2021-03-04 09:01:34 -08:00
Ilfat Galiev c6489ee853
Update react to 16.14.0 (#417) 2021-02-15 05:34:14 -08:00
Ilfat Galiev 3dd319350f
Update version to 2.0.0 (#408)
* Update version number. Fix header

* Update legend item marker shape
2021-02-10 14:12:58 -08:00
Dan Marshall d5cd28628f
use DartSass instead of LibSass (#387) 2021-01-20 21:01:06 -08:00
Dan Marshall 94a6226c05
Update lint-staged (#365)
* update lint-staged

* update husky
2020-12-03 15:10:57 -08:00
Ilfat Galiev 84080dca64
Allow to move panels to right (#332)
* Allow to move panels to right

* Split params

* Vertical toolbar

* Corner icon for buttons

* Configurable main view

* Align toolbar-labels

* Vertical toolbar

* Add default config for main view

* Group tool buttons by category

* Align toolbar content

* Set defaults

* Set defaults directly

* Configure app header

* Fix drag & drop of tool buttons

* Change attributes panel for Legend and Plot Segment

* Align mapping editor popups to left

* Fix icon for color scale

* Fix toolbar items indexes

* Expose widgets

* Update rest dialog for embedded mode

* Change attributes panel for Legend

* Add checks for links rows

* Expose addSVGIcon, getSVGIcon functions

* Import & export template buttons on toolbar

* Align plot segment attribute buttons

* Remove "nice" for date axes scales

* Add timezone shift to dates

* Fix tslint

* Fix lint issues

* Update typescript and tslint

* Run prettify

* Fix merge issue

Co-authored-by: Ilfat Galiev <v-ilga@microsoft.com>
Co-authored-by: Ilfat Galiev <v-ilgal@microsoft.com>
2020-10-22 12:01:01 -07:00
Ilfat Galiev a529356c61
General updates for found issues (#341)
* Update version to 1.8.0

* Add legend layout property update into migrator

* fix getSortFunctionByData function

* Expose linkThrough column names of links into tempalte

* Include DataKind on creating scales by number columns with categorical data kind

* Fix "if" statement

Co-authored-by: Ilfat Galiev <v-ilgal@microsoft.com>
2020-10-19 08:05:15 -07:00
Ilfat Galiev 28461652a1
Interactivity properties for marks (#314)
* Interactivity properties for marks

* Rename interactivity properties

Co-authored-by: Ilfat Galiev <v-ilgal@microsoft.com>
2020-09-09 11:18:25 -07:00
Dan Marshall c0b94d5d55
Direct color from data (#286)
* add d3-color

* use literal color values

* autoformat
2020-07-24 07:02:10 -07:00
Ilfat Galiev dfeb804453
Add ssl for dev environment (#262)
* Setup SSL for dev server

* Fix container interface

* Solve constrain after loading the template

* Post message communication with parent window

* Add start command for no SSL server

* Add TargetOrigins property into config

* Pass full template from nested editor

* Get computed default sorting for plot segments

* Expose block of code to utils

* Apply getSortDirection function

* Update package.json

* Update node version for TravisCI

Co-authored-by: Ilfat Galiev <v-ilgal@microsoft.com>
2020-07-06 09:08:09 -07:00
Ilfat Galiev a1e2d0f472
Internal tech documentation (#237)
* Configure typedoc
Add description for app
Add general documentation

* Add description for rect constraints, line plot segment constraints.

* Template description

* Dataset documentation

* Merge master

* Draft

* Enable check-multiline-start for jsdoc

Co-authored-by: Ilfat Galiev <v-ilgal@microsoft.com>
2020-07-01 06:37:03 -07:00
Ilfat Galiev 13a24b6dd1
Merged updates (#232)
* Save exported properties names on export view
Add table types
File parameter support for Power BI Visual Icon file
Fix colors scale for nested chart.

* Update on data reloading

* Lock range

* Link mark

* Column name

* Apply prettier

* Fix expression context

* Set solver max iterations limit to 20

* Context menu support for drill down

* Fix merge conflict issues

* Fix issue on HTML export

* Date type/Data kind selector for columns

* Gravity options for packing layout

* Fixes after review

Co-authored-by: Ilfat Galiev <v-ilgal@microsoft.com>
2020-05-14 16:26:25 -07:00
Ilfat Galiev a8ab4d09a6
Scale pane (#215)
* Expose properties of marks

* Update export view

* Expose link properties

* Export symbolTypesList, fix d.ts file to update for extensions.

* Fix getTemplateParameters method for Links object

* Small fixes. Remove commented code.

* Scales panel

* Fix floating panel. Sort scales. Capitalize the property name.

* Fix tests

* Move Scales panel to the left group

* Fix property name displaying

* Fix floating panels

* Fix the default nested chart

* Expose linear boolean scale

* Fix componentDidMount method of ScalesPanel component

Co-authored-by: Ilfat Galiev <v-ilgal@microsoft.com>
2020-05-04 08:33:03 -07:00
duncanhealy 2ded97ba4a update node-sass to 4.13.0 for node version 11,12,13 (#191) 2020-01-25 09:22:30 -08:00
Dan Marshall 8c41670c05 update http-server to 0.12 (#187) 2019-12-02 22:20:01 -08:00
dependabot[bot] 840ccccb87 Bump js-yaml from 3.12.0 to 3.13.1 (#178)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-30 10:11:29 -07:00
Donghao Ren 7427c08102
Fix ordering issue (#154) 2019-02-19 14:02:51 -08:00
Donghao Ren 0d2824f4a8
Fix recent travis failure, upgrade modules (#120)
* Upgrade modules and regenerate lock file

* Rebuild yarn.lock
2018-11-19 12:25:15 -08:00
Donghao Ren 11c3e3b0e3
Upgrade outdated packages (#116)
* Use any for timer types

* Update typescript, react, and webpack

* Upgrade mocha, chai, js-yaml, and url-loader

* Update lint-staged, husky, and file-loader

* Upgrade prettier

* Run prettier
2018-11-09 14:24:57 -08:00
Donghao Ren 20d123f450
Update lscg-solver version (#107) 2018-10-30 18:51:45 -07:00
Donghao Ren 50f5c1a65e
Refactor store and action handlers (#93)
* Combine the stores into one, fix minor issues in the store

* Separate action handlers to multiple files

* Refine filter editor

* Remove dead code
2018-10-02 15:44:20 -07:00
Donghao Ren 3c19a1ce33
Image padding and alignment (#83) 2018-09-27 12:48:29 -07:00
Donghao Ren aa7f3eefec
Solver enhancements (#55)
Upgrade lscg-solver to 1.2.0, and make the following enhancements related to the solver:

* A better approach to fit marks to plot segment boundaries. Previously we had to run the whole solver process twice (which was the bottleneck), now we only need to execute the lscg-solver a few times

* Solve the charts in two stages: in chart stage, we layout chart-level elements, and then in glyphs stage, we layout glyphs, while keeping chart-level elements intact. This is to address the problems where de-snapping a plot segment may result in unexpected behavior

* Add a regularizer to keep unconstrained variables to their current value in case the algorithms gives something completely different, and generate unexpected behavior
2018-09-18 09:41:06 -07:00
Donghao Ren 883017e00b
Better handling data types and other enhancements (#50)
* Better distinguish in-memory data types and abstract data kinds
* Use enum for data type and kind for better type checking
* Add template parameters to Object and ObjectStates to avoid extending them everywhere in the prototypes folder
* Cleanup unused fields from AttributeDescription
* Add a AttrBuilder class to centralize the creation of AttributeDescriptions
* Use UTC consistently for date parse and format.
* Support date axis
* Support logarithmic axis
* Add a HSV color picker
* Fix chrome bug in color picker
* Add a "none" option to color picker to remove the color
2018-09-17 13:45:58 -07:00
Donghao Ren 321d9d951d
Add ui test code (#47)
Now in development mode, we can test UI components and rendering code with localhost:4000/test.html.
2018-09-11 15:27:37 -07:00
Donghao Ren 5b090be4cd Support small multiples; fix template export and chart container (#44)
* First working version on small multiples

* Fix nested chart icon

* Fix render static image

* Show working status for small multiples

* Renamed a few files to match the current naming style

* Update multirun to 3.0.2 (minor)

* Render each mark in a separate layer, instead of each glyph

* Fix filename and remove dead code

* Add column name map to nested chart

* Add reverse and sort to categorical axis ordering

* Add doc for adding sample datasets in config.yml

* Start fixing template export

* Icon for nested chart; add tooltip for a few buttons

* Work in progress

* Add more error boundary; add version to help menu

* Template export almost fixed

* Fix container and selection

* Use 2 spaces indentation for HTML files

* Fix glyph/mark selection

* Fix React incorrect nesting warning

* Fix scale inference when values are the same

* Enhance nested chart editor

* Fix container code for Power BI visual

* Upgrade packages and build script

* Changes according to PR comments

* Show message in glyph/attribute editor when plot segment is not available for a glyph

* Prettify scss files as well, run prettier on all files

* Add license for scss files

* Update license format to use // instead of /* */

* Use two space indent for webpack config
2018-09-10 14:20:20 -07:00
Donghao Ren 7e08093d9b Update multirun version and polish build.js 2018-09-07 01:01:05 -07:00
David Tittsworth 5b10fce982
Add licenses (#39)
* Added basic license header injector

* Updated header and added license check to precommit

* Added licenses to source files

* Updated the license file
2018-09-06 12:02:35 -07:00
Donghao Ren a43d8e7966 Bump version to 1.1.0, add version to about page 2018-09-03 18:22:45 -07:00
David Tittsworth d3b32ba54c
Added basic selection support to the container class (#27)
* Added basic selection eventing to the container class
  - Also added hit detection to the canvas renderer

* Removed canvas renderer, and updated container to use the svg renderer, removed some code duplication

* Updated to use object properties rather than attributes for emphasis data

* Updated to use preact in the container bundle
2018-08-29 12:08:14 -07:00
David Tittsworth 032e11f859 Added some basic polish, and added some theming 2018-07-24 17:01:38 -07:00
Chris Trevino aeb6018202 Add Prettier, TSLint Configuration
Prettier enforces an automated style on the source code. This commit uses the default settings for now and executes it on the current codebase.

TSLint checks for Javascript/Typescript best practices and emits warnings about various errors. This commit implements some auto-corrections, and temporarily disables other rules for now.
2018-05-10 17:25:53 -07:00
Chris Trevino a9bfb0832d Add tslint, run tslint --fix 2018-05-10 17:08:58 -07:00
Chris Trevino 1df3c9a466 Update the source to work on my machine 2018-05-10 15:51:08 -07:00
bongshin df98f19ad3 first commit 2018-05-07 15:23:35 -07:00