Skip to content

Commit

Permalink
Plots page
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin04 committed Jun 22, 2021
1 parent b1bd8cb commit ba367a3
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pages/blocks/machine-learning/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview

Machine learning block documentation is currently a work in progress.
Empty file.
Empty file.
Empty file.
7 changes: 6 additions & 1 deletion pages/blocks/machine-learning/meta.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{

"index": "Overview",
"linr": "Linear regression",
"logr": "Logistic regression",
"knn": "K-nearest neighbors",
"rf": "Random forest",
"sv": "Support vector"
}
Empty file.
Empty file.
30 changes: 29 additions & 1 deletion pages/blocks/plots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,38 @@

The plots category lets you control the "Data Visualization" tab in the editor, letting you graph data in various types of plots.

![Screenshot of blocks in Plots category](/plots-blocks.png)

![Screenshot of line plot made using Plots blocks](/plots-example.png)

## Set plot title

This sets the title of a plot. This is different from the series title, which is used to differentiate multiple series.

![Screenshot of a plot title](/plots-title-example.png)

## Add series to plot

This is used to add data to the plot. The title is displayed on the right side of the plot when there are multiple series, allowing you to differentiate them. Both data parameters should be lists.

### Types of plots

Here are the types of plots we currently support:

- [Scatter](https://plotly.com/javascript/line-and-scatter/)
- [Bar](https://plotly.com/javascript/bar-charts/)
- [Box](https://plotly.com/javascript/box-plots/)
- [Pie](https://plotly.com/javascript/pie-charts/)
- [Histogram](https://plotly.com/javascript/histograms/)
- [Histogram contour](https://plotly.com/javascript/2d-histogram-contour/)
- [Violin](https://plotly.com/javascript/violin/)

If you'd like us to add support for a new type of plot, feel free to [file a GitHub issue](https://github.com/kobra-dev/Kobra/issues) suggesting it.

## Remove series with title

## Reset plot
This removes a series by its title.

## Reset plot

This resets the plot (removes all series and clears the title).
Binary file added public/plots-blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/plots-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/plots-title-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit ba367a3

@vercel
Copy link

@vercel vercel bot commented on ba367a3 Jun 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.