All Projects → pishen → chart4s

pishen / chart4s

Licence: Apache-2.0 license
Draw a web chart by Scala

Programming Languages

scala
5932 projects

Labels

Projects that are alternatives of or similar to chart4s

Uplot
📈 A small, fast chart for time series, lines, areas, ohlc & bars
Stars: ✭ 6,808 (+18811.11%)
Mutual labels:  chart, plot
Highcharts Chart
Polymer Element wrapper for highcharts library. Seamlessly create various types of charts from one element.
Stars: ✭ 97 (+169.44%)
Mutual labels:  chart, plot
Go Chartjs
golang library to make https://chartjs.org/ plots (this is vanilla #golang, not gopherjs)
Stars: ✭ 42 (+16.67%)
Mutual labels:  chart, plot
Aachartcore Kotlin
📈📊⛰⛰⛰An elegant modern declarative data visualization chart framework for Android . Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types.极其精美而又强大的 Android 数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
Stars: ✭ 332 (+822.22%)
Mutual labels:  chart, plot
Computator.net
Computator.NET is a special kind of numerical software that is fast and easy to use but not worse than others feature-wise. It's features include: - Real and complex functions charts - Real and complex calculator - Real functions numerical calculations including different methods - Over 107 Elementary functions - Over 141 Special functions - Over 21 Matrix functions and operations - Scripting language with power to easy computations including matrices - You can declare your own custom functions with scripting language
Stars: ✭ 174 (+383.33%)
Mutual labels:  chart, plot
Plotly
Plotly for Rust
Stars: ✭ 433 (+1102.78%)
Mutual labels:  chart, plot
Highcharts trendline
HighCharts demo of scatter plot, including a trend line
Stars: ✭ 79 (+119.44%)
Mutual labels:  chart, plot
SwiftCharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,405 (+6580.56%)
Mutual labels:  chart, plot
Aachartkit Swift
📈📊📱💻🖥️An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的跨平台数据可视化图表框架,支持柱状图、条形图、…
Stars: ✭ 1,962 (+5350%)
Mutual labels:  chart, plot
Asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Stars: ✭ 1,805 (+4913.89%)
Mutual labels:  chart, plot
Plotlib
Data plotting library for Rust
Stars: ✭ 308 (+755.56%)
Mutual labels:  chart, plot
Charts
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.
Stars: ✭ 2,337 (+6391.67%)
Mutual labels:  chart, plot
asciichart-sharp
C# port of asciichart
Stars: ✭ 27 (-25%)
Mutual labels:  chart, plot
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (+1377.78%)
Mutual labels:  chart, plot
plotters-iced
📈 Iced backend for Plotters
Stars: ✭ 30 (-16.67%)
Mutual labels:  chart, plot
Asciichart
Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS, browsers and terminal, no dependencies
Stars: ✭ 1,107 (+2975%)
Mutual labels:  chart, plot
smag
Show Me A Graph - Command Line Graphing
Stars: ✭ 78 (+116.67%)
Mutual labels:  chart, plot
Nim Plotly
plotting library for nim-lang
Stars: ✭ 121 (+236.11%)
Mutual labels:  chart, plot
Plotjuggler
The Time Series Visualization Tool that you deserve.
Stars: ✭ 2,620 (+7177.78%)
Mutual labels:  chart, plot
Swiftcharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,336 (+6388.89%)
Mutual labels:  chart, plot

chart4s

Draw a web chart by Scala.

Demo

The charts are generated by C3.js. Support for other JavaScript libraries may come in the future.

Installation

Add the following to your build.sbt:

libraryDependencies += "net.pishen" %% "chart4s" % "0.2.0"

resolvers += Resolver.bintrayRepo("pishen", "maven")

Then, add the import statements to your code:

import chart4s.c3._

Supported charts

Line Chart

val lines = Seq(
  "a" -> Seq(3.1,6.4,2.3,7.5,5.0,8.9),
  "b" -> Seq(5.4,3.3,7.0,2.7,3.9,5.2)
)

val xValues = Seq(0.1, 0.2, 0.3, 0.45, 0.5, 0.6)

LineChart(lines, xValues).draw

Bar Chart

val data = Seq(
  "a" -> Seq(3.1,6.4,2.3,7.5,5.0,8.9,7.7),
  "b" -> Seq(5.4,3.3,7.0,2.7,3.9,5.2,9.1)
)

val xValues = Seq("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat")

BarChart(data, xValues).draw

Pie Chart

PieChart(Seq("a" -> 5, "b" -> 3, "c" -> 11)).draw

Stacked Line Chart

val lines = Seq(
  "a" -> Seq(3.1,6.4,2.3,7.5,5.0,8.9),
  "b" -> Seq(5.4,3.3,7.0,2.7,3.9,5.2)
)

val xValues = Seq(0.1, 0.2, 0.3, 0.45, 0.5, 0.6)

StackedLineChart(lines, xValues).draw

Timeseries Chart

import java.time.LocalDate //also works for LocalDateTime

val lines = Seq(
  "a" -> Seq(3.1,6.4,2.3,7.5,5.0,8.9),
  "b" -> Seq(5.4,3.3,7.0,2.7,3.9,5.2)
)

val now = LocalDate.now
val timeValues = Seq(0, 1, 2, 4, 5, 6).map(d => now.plusDays(d))

TimeseriesChart(lines, timeValues).draw

XY Line Chart

XYLineChart(Seq(
  "a" -> Seq(1 -> 1, 2 -> 2, 3 -> 3, 4 -> 5, 5 -> 8, 6 -> 13),
  "b" -> Seq(5 -> 1, 6 -> 2, 7 -> 3, 8 -> 5, 9 -> 8, 10 -> 13)
)).draw
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].