Interactive Layout-Aware Construction of Bespoke Charts
Перейти к файлу
Dan Marshall e670cb9a7a
Add stroke style to mark (#245)
* add strokeStyle

* common StrokeStyle

* formatting

* remove strokeStyle

* remove comments

* strokeStyle on triangle & ellipse

* whiespace

* added stroke icons
2020-05-20 08:03:38 -07:00
.vscode Merged updates (#232) 2020-05-14 16:26:25 -07:00
public Allow zip download to build (#94) 2018-10-02 17:50:45 -07:00
public_test Add ui test code (#47) 2018-09-11 15:27:37 -07:00
resources/icons Add stroke style to mark (#245) 2020-05-20 08:03:38 -07:00
sass Merged updates (#232) 2020-05-14 16:26:25 -07:00
src Add stroke style to mark (#245) 2020-05-20 08:03:38 -07:00
.gitignore Merged updates (#232) 2020-05-14 16:26:25 -07:00
.travis.yml Copy config.yml in before_script 2018-08-19 21:57:29 -07:00
LICENSE Add licenses (#39) 2018-09-06 12:02:35 -07:00
README.md Add ui test code (#47) 2018-09-11 15:27:37 -07:00
THIRD_PARTY.yml Added some basic polish, and added some theming 2018-07-24 17:01:38 -07:00
build.js Add html export and fix export some related issues (#114) 2018-11-09 14:01:48 -08:00
config.template.yml Removed extra "Microsoft" in privacy statement 2018-09-24 13:05:12 -07:00
header.txt Add licenses (#39) 2018-09-06 12:02:35 -07:00
package.json Merged updates (#232) 2020-05-14 16:26:25 -07:00
tsconfig.json Scale pane (#215) 2020-05-04 08:33:03 -07:00
tslint.json Add Prettier, TSLint Configuration 2018-05-10 17:25:53 -07:00
webpack.config.js Allow zip download to build (#94) 2018-10-02 17:50:45 -07:00
yarn.lock Bump acorn from 5.7.3 to 5.7.4 (#216) 2020-04-10 09:26:05 -07:00

README.md

Build Status

Charticulator

Charticulator is a new charting tool that allows you to design charts by interactively specifying constraints.

Project Team

Build

Follow the following steps to prepare a development environment:

Install node modules:

yarn

Copy the template configuration file and edit its contents:

cp config.template.yml config.yml
# (on windows, use copy instead of cp)

Run the following command to build Charticulator, which will create a self contained bundle in the dist folder:

yarn build

Run a local web server to test Charticulator:

# Serve Charticulator at http://localhost:4000
yarn server

# Serve Charticulator publicly at http://0.0.0.0:4000
# Use this if you want to enable access from another computer
yarn public_server

Development

For a live development environment, keep the following command running:

yarn start

This command watches for any change in src/ and sass/, and recompiles Charticulator automatically. Once this up, open http://localhost:4000/ to launch Charticulator. Now when you change the source code, the app can be updated by simply refreshing the browser page (you may need to disable browser cache).

In development mode, there is a test application for UI components, which can be accessed at http://localhost:4000/test.html.

The watch mode won't update when you change the following:

  • config.yml
  • THIRD_PARTY.yml
  • webpack.config.js

When you update these, please do yarn build again.

Sample Datasets

You can add custom sample datasets that can be used with Charticulator. To do so, create a datasets folder at the root of the repository(if it doesn't exist), add your .csv (or .tsv) to that folder, and finally create a files.json file in the folder with the following contents:

[
    {
        "name": "<Your dataset display name>",
        "description": "<Your dataset desription>",
        "tables": [
            {
                "name": "<Your dataset file name without extension>",
                "type": "<csv || tsv>",
                "url": "<Your dataset file name with extension>"
            }
        ]
    }
]

Testing

Charticulator currently include a rudimentary test code:

yarn test

More test cases are needed.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.