See here for the example code that generated this page

LineChart Examples

This page demonstrates the key features of LineChart plots in JSPlots.




Daily Revenue Trend - H1 2024

Basic time series showing 6-month revenue trend

Plot Attributes

Axes

Date
Revenue
0.4 (0.25 - 2.5)

Data: revenue_data




Monthly Sales Comparison Across Years

Multiple series chart demonstrating color dimension to compare years

Plot Attributes

Axes

Month
Sales
0.4 (0.25 - 2.5)

Data: sales_data




Department Productivity by Month

Interactive filters allow you to select different departments and quarters

Filters

Plot Attributes

Axes

Month
Value
0.4 (0.25 - 2.5)

Data: metrics




example_visual

Example visualization image

example_visual

images.jpeg




Sales by Product (Facet Wrap)

Facet wrap creates a grid of subplots, one for each product. Similar to ggplot2's facet_wrap.

Plot Attributes

Axes

Month
Sales

Facets

0.4 (0.25 - 2.5)

Data: facet_data




Sales by Product and Region (Facet Grid)

Facet grid creates a 2D grid of subplots. First facet variable (Product) defines rows, second (Region) defines columns. Similar to ggplot2's facet_grid.

Plot Attributes

Axes

Month
Sales

Facets

0.4 (0.25 - 2.5)

Data: facet_grid_data




Dynamic Controls Demo - Stock Returns

Use the dropdown menus to dynamically change: (1) Color by, (2) Line type by, (3) Aggregator, (4) Facet 1, (5) Facet 2.

Plot Attributes

Axes

Month
Return

Facets

0.4 (0.25 - 2.5)

Data: dynamic_data




Aggregation Demo - Multiple Observations per X

This dataset has 5 observations per month. Use the Aggregator dropdown to switch between: none (all points), mean, median, count, min, max.

Plot Attributes

Axes

Month
Sales
0.4 (0.25 - 2.5)

Data: agg_data




Multi-Dimensional Weather Data - Dynamic X and Y Selection

Use the dropdowns to dynamically switch between different time scales (X) and measurements (Y). This demonstrates how you can provide multiple options for both axes and let users explore different views of the same dataset.

Plot Attributes

Axes

0.4 (0.25 - 2.5)

Data: multi_data




Sales with Continuous Range Filters

This example demonstrates jQuery UI range sliders for continuous variables. Use the Product dropdown for categorical filtering, and the Profit Margin and Units sliders to filter by numeric ranges. Each slider has two handles for min/max values.

Filters

122.16 - 999.08
5.28 - 49.48

Plot Attributes

Axes

Month
Sales
0.4 (0.25 - 2.5)

Data: continuous_filter_data




Struct Data Source Example

JSPlots supports using custom structs containing DataFrames as data sources. This is useful when:

Pass the struct to JSPlotPage and reference fields using dot notation: Symbol("struct_name.field_name")




Stock Prices from Struct Data Source

This chart demonstrates using a struct as a data source. The FinancialData struct contains both prices and volumes DataFrames. Charts reference struct fields using dot notation in the data_label (e.g., Symbol("financial.prices")).

Plot Attributes

Axes

Date
Price
0.4 (0.25 - 2.5)

Data: financial.prices




Key Features Summary

Tip: Hover over lines to see detailed values!


This page was created using JSPlots.jl v0.4.0.