Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename to chart-io #152

Merged
merged 4 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/yellow-carrots-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@chart-io/d3": minor
"@chart-io/detection": minor
"@chart-io/react": minor
"@chart-io/types": minor
---

Updated name
12 changes: 0 additions & 12 deletions CanvasScatter.md

This file was deleted.

21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# @chart-it/react-d3
# @chart-io/react-d3

@chart-it/react-d3 provides a set of reusable chart components to make data visualization easy. All the components are built using a combination of [React](https://reactjs.org/) and [D3](https://d3js.org/).
@chart-io/react-d3 provides a set of reusable chart components to make data visualization easy. All the components are built using a combination of [React](https://reactjs.org/) and [D3](https://d3js.org/).

It aims to provide high-level components that require minial configuration to provide great looking charts, while also providing access to the low level components giving you the flexibility to customize them as you see fit.

> :warning: @chart-it/react-d3 is currently in pre-release. While you're welcome to give it a try some interfaces may change.
> :warning: @chart-io/react-d3 is currently in pre-release. While you're welcome to give it a try some interfaces may change.

# Install

#### npm

`npm install --save @chart-it/react-d3`
`npm install --save @chart-io/react-d3`

#### yarn

`yarn add @chart-it/react-d3`
`yarn add @chart-io/react-d3`

# Getting Started

The best way to get started is to take a look at some of the examples in this Storybook https://ipwright83.github.io/chart-it/?path=/docs/getting-started--docs.

The best way to get started is to take a look at some of the examples in this Storybook https://ipwright83.github.io/chart-io/?path=/docs/getting-started--docs.

Here is an example of a very basic Scatter chart

Expand All @@ -36,13 +35,13 @@ Here is an example of a very basic Scatter chart
Clone the project

```bash
git clone https://github.com/IPWright83/chart-it
git clone https://github.com/IPWright83/chart-io
```

Go to the project directory

```bash
cd chart-it
cd chart-io
```

Install dependencies
Expand All @@ -59,6 +58,6 @@ Start the storybook server

## FAQ

#### Is @chart-it/react-d3 free to use?
#### Is @chart-io/react-d3 free to use?

@chart-it/react-d3 is free to use and the aim is that it will always be free in open source/non-commercial projects. There may be costs for commercial use in the future, purely to help support the development and improvement of @chart-it/react-d3.
@chart-io/react-d3 is free to use and the aim is that it will always be free in open source/non-commercial projects. There may be costs for commercial use in the future, purely to help support the development and improvement of @chart-io/react-d3.
6 changes: 3 additions & 3 deletions demos/react-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
### Patch Changes

- Updated dependencies [aa0b805]
- @chart-it/react-d3@0.11.0
- @chart-io/react-d3@0.11.0

## 0.1.2

### Patch Changes

- Updated dependencies [29b2703]
- @chart-it/react-d3@0.10.0
- @chart-io/react-d3@0.10.0

## 0.1.1

### Patch Changes

- Updated dependencies [3254c1e]
- @chart-it/react-d3@0.9.0
- @chart-io/react-d3@0.9.0
2 changes: 1 addition & 1 deletion demos/react-demo/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
roots: ["<rootDir>/src"],
testEnvironment: "jsdom",
testMatch: ["**/*.unit.jsx", "**/*.unit.tsx"],
transformIgnorePatterns: ["<rootDir>/node_modules/(?!@chart-it/d3/.*)"],
transformIgnorePatterns: ["<rootDir>/node_modules/(?!@chart-io/d3/.*)"],
transform: {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": ["@swc/jest"],
},
Expand Down
2 changes: 1 addition & 1 deletion demos/react-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.3",
"private": true,
"dependencies": {
"@chart-it/react": "workspace:*",
"@chart-io/react": "workspace:*",
"@swc/core": "^1.3.36",
"@swc/jest": "^0.2.24",
"@testing-library/jest-dom": "^5.16.5",
Expand Down
2 changes: 1 addition & 1 deletion demos/react-demo/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { XYChart, XAxis, YAxis, Scatter } from "@chart-it/react";
import { XYChart, XAxis, YAxis, Scatter } from "@chart-io/react";

import "./App.css";

Expand Down
6 changes: 3 additions & 3 deletions demos/react-demo/src/__snapshots__/App.unit.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`renders learn react link 1`] = `
class="g-event-receiver"
>
<rect
class="chart-it event-receiver"
class="chart-io event-receiver"
height="440"
style="fill: none; pointer-events: all;"
transform="translate(30, 30)"
Expand Down Expand Up @@ -218,7 +218,7 @@ exports[`renders learn react link 1`] = `
</g>
</g>
<g
class="chart-it axis axis-left"
class="chart-io axis axis-left"
fill="none"
font-family="sans-serif"
font-size="10"
Expand Down Expand Up @@ -601,7 +601,7 @@ exports[`renders learn react link 1`] = `
</g>
</g>
<g
class="chart-it axis axis-bottom"
class="chart-io axis axis-bottom"
fill="none"
font-family="sans-serif"
font-size="10"
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
"scripts": {
"build": "turbo run build",
"build:package": "node scripts/choice build",
"build:watch": "turbo run build --scope=@chart-it/* --no-deps -- -- -w",
"dev": "turbo run build --scope=@chart-it/* --no-deps && turbo run dev --no-cache --parallel --continue",
"build:watch": "turbo run build --scope=@chart-io/* --no-deps -- -- -w",
"dev": "turbo run build --scope=@chart-io/* --no-deps && turbo run dev --no-cache --parallel --continue",
"changeset": "changeset",
"clean": "rm -rf node_modules && pnpm -r clean",
"graph": "turbo run build --graph=graph.html",
"lint": "turbo run lint",
"publish": "changeset publish",
"refresh": "pnpm clean && pnpm install",
"start": "turbo run start",
"storybook": "pnpm --filter '@chart-it/react' storybook",
"storybook:build": "pnpm --filter '@chart-it/react' build-storybook",
"storybook:deploy": "pnpm --filter '@chart-it/*' deploy-storybook",
"storybook": "pnpm --filter '@chart-io/react' storybook",
"storybook:build": "pnpm --filter '@chart-io/react' build-storybook",
"storybook:deploy": "pnpm --filter '@chart-io/*' deploy-storybook",
"types": "turbo run types",
"test": "turbo run test --concurrency=1",
"test:coverage": "turbo run test --concurrency=1 -- --coverage",
Expand Down
2 changes: 1 addition & 1 deletion packages/d3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @chart-it/d3
# @chart-io/d3

## 0.9.0

Expand Down
4 changes: 2 additions & 2 deletions packages/d3/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@chart-it/d3",
"name": "@chart-io/d3",
"version": "0.9.0",
"private": true,
"packageManager": "pnpm@7.5.2",
"description": "Provides a custom d3 bundle",
"repository": "git@github.com:IPWright83/chart-it.git",
"repository": "git@github.com:IPWright83/chart-io.git",
"author": "Ian Wright - IPWright83",
"main": "index.ts",
"types": "index.ts",
Expand Down
22 changes: 11 additions & 11 deletions packages/detection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @chart-it/detection
# @chart-io/detection

## 0.7.0

Expand All @@ -11,24 +11,24 @@
### Patch Changes

- Updated dependencies [f0231e1]
- @chart-it/d3@0.6.0
- @chart-it/types@0.6.3
- @chart-io/d3@0.6.0
- @chart-io/types@0.6.3

## 0.6.2

### Patch Changes

- Updated dependencies [ce6284f]
- @chart-it/d3@0.5.0
- @chart-it/types@0.6.2
- @chart-io/d3@0.5.0
- @chart-io/types@0.6.2

## 0.6.1

### Patch Changes

- Updated dependencies [6f8b2af]
- @chart-it/d3@0.4.0
- @chart-it/types@0.6.1
- @chart-io/d3@0.4.0
- @chart-io/types@0.6.1

## 0.6.0

Expand All @@ -41,8 +41,8 @@

- Updated dependencies [494a204]
- Updated dependencies [5c9ca11]
- @chart-it/d3@0.3.0
- @chart-it/types@0.6.0
- @chart-io/d3@0.3.0
- @chart-io/types@0.6.0

## 0.5.0

Expand All @@ -53,8 +53,8 @@
### Patch Changes

- Updated dependencies [feddec9]
- @chart-it/d3@0.2.0
- @chart-it/types@0.5.0
- @chart-io/d3@0.2.0
- @chart-io/types@0.5.0

## 0.4.0

Expand Down
2 changes: 1 addition & 1 deletion packages/detection/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
testEnvironment: "jsdom",
testMatch: ["**/*.unit.js", "**/*.unit.ts"],
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
transformIgnorePatterns: ["<rootDir>/node_modules/(?!@chart-it/d3/.*)"],
transformIgnorePatterns: ["<rootDir>/node_modules/(?!@chart-io/d3/.*)"],
transform: {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": ["@swc/jest"],
},
Expand Down
10 changes: 5 additions & 5 deletions packages/detection/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@chart-it/detection",
"name": "@chart-io/detection",
"version": "0.7.0",
"private": true,
"packageManager": "pnpm@7.26.2",
"description": "Provides data type detection utilities for @chart-it",
"repository": "git@github.com:IPWright83/chart-it.git",
"description": "Provides data type detection utilities for @chart-io",
"repository": "git@github.com:IPWright83/chart-io.git",
"author": "\"Ian Wright\" <\"ipwright83+dev@gmail.com\">",
"main": "src/index.ts",
"module": "src/index.ts",
Expand All @@ -30,8 +30,8 @@
],
"dependencies": {},
"devDependencies": {
"@chart-it/d3": "workspace:*",
"@chart-it/types": "workspace:*",
"@chart-io/d3": "workspace:*",
"@chart-io/types": "workspace:*",
"@swc/core": "^1.3.36",
"@swc/jest": "^0.2.24",
"@testing-library/jest-dom": "^5.16.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/detection/src/getInfos/getColumnInfos.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IData } from "@chart-it/types";
import type { IData } from "@chart-io/types";

import { getDataCardinality } from "./getDataCardinality";
import { getDataPointCount } from "./getDataPointCount";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as d3 from "@chart-it/d3";
import * as d3 from "@chart-io/d3";

import { getMaxStringLength } from "./getMaxStringLength";
import type { IColumnInfo } from "../types";
Expand Down
16 changes: 8 additions & 8 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @chart-it/react-d3
# @chart-io/react-d3

## 0.32.0

Expand Down Expand Up @@ -106,9 +106,9 @@
### Patch Changes

- Updated dependencies [feddec9]
- @chart-it/d3@0.2.0
- @chart-it/detection@0.5.0
- @chart-it/types@0.5.0
- @chart-io/d3@0.2.0
- @chart-io/detection@0.5.0
- @chart-io/types@0.5.0

## 0.15.0

Expand Down Expand Up @@ -143,7 +143,7 @@
### Patch Changes

- Updated dependencies [a6cc33a]
- @chart-it/detection@0.4.0
- @chart-io/detection@0.4.0

## 0.11.0

Expand All @@ -154,7 +154,7 @@
### Patch Changes

- Updated dependencies [aa0b805]
- @chart-it/detection@0.3.0
- @chart-io/detection@0.3.0

## 0.10.0

Expand All @@ -177,7 +177,7 @@
### Patch Changes

- Updated dependencies [bc7e7f3]
- @chart-it/detection@0.2.0
- @chart-io/detection@0.2.0

## 0.7.0

Expand Down Expand Up @@ -222,4 +222,4 @@

- c2ccdd1: Test
- Updated dependencies [c2ccdd1]
- @chart-it/detection@0.1.33
- @chart-io/detection@0.1.33
2 changes: 1 addition & 1 deletion packages/react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
setupFilesAfterEnv: ["<rootDir>/src/jest/setupTests.js"],
testEnvironment: "jsdom",
testMatch: ["**/*.unit.js", "**/*.unit.jsx", "**/*.unit.ts", "**/*.unit.tsx"],
transformIgnorePatterns: ["<rootDir>/node_modules/.pnpm/(?!(@chart-it)@)"],
transformIgnorePatterns: ["<rootDir>/node_modules/.pnpm/(?!(@chart-io)@)"],
transform: {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": ["@swc/jest"],
"^.+\\.css$": "<rootDir>/src/jest/cssTransform.js",
Expand Down
14 changes: 7 additions & 7 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@chart-it/react",
"name": "@chart-io/react",
"private": false,
"version": "0.32.0",
"packageManager": "pnpm@7.26.2",
"description": "@chart-it is a react-d3 charting library",
"repository": "git@github.com:IPWright83/chart-it.git",
"description": "@chart-io is a react-d3 charting library",
"repository": "git@github.com:IPWright83/chart-io.git",
"author": "\"Ian Wright\" <\"ipwright83+dev@gmail.com\">",
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"homepage": "https://github.com/IPWright83/chart-it",
"homepage": "https://github.com/IPWright83/chart-io",
"scripts": {
"test": "jest --config jest.config.js",
"test:coverage": "jest --config jest.config.js --coverage",
Expand Down Expand Up @@ -43,9 +43,9 @@
"@babel/plugin-transform-react-jsx": "^7.18.6",
"@babel/preset-env": "^7.18.9",
"@babel/preset-react": "^7.18.6",
"@chart-it/d3": "workspace:*",
"@chart-it/detection": "workspace:*",
"@chart-it/types": "workspace:*",
"@chart-io/d3": "workspace:*",
"@chart-io/detection": "workspace:*",
"@chart-io/types": "workspace:*",
"@storybook/addon-actions": "^7.0.0-beta.54",
"@storybook/addon-docs": "^7.0.0-beta.54",
"@storybook/addon-essentials": "^7.0.0-beta.54",
Expand Down
Loading
Loading