File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
chartlets/components/charts Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11## Version 0.1.0 (in development)
22
3+
34* Reorganised Chartlets project to better separate demo from library code.
45 Created separate folder ` demo ` in ` chartlets.py ` that contains
5- a ` server ` package and example configuration.
6+ a demo ` server ` package and example configuration.
7+ Also simplified demo server code:
8+ - Moved ` panel ` module one level up
9+ - Removed ` util ` module which was no longer required
610
7- * Allow for different chart providers. ` VegaChart ` is defined only if
8- ` vega- altair` is installed.
11+ * Allow for different chart providers. ` VegaChart ` can be configured only if
12+ ` altair ` package is installed.
913
1014* Renamed ` Plot ` into ` VegaChart ` , which now also respects a ` theme ` property.
1115
Original file line number Diff line number Diff line change 11from dataclasses import dataclass
22from typing import Any
3-
3+ import warnings
44
55# Respect that "altair" is an optional dependency.
66try :
99
1010 AltairChart = altair .Chart
1111except ImportError :
12+ warnings .warn ("you must install 'altair' to use the VegaChart component" )
1213 AltairChart = type (None )
1314
1415from chartlets import Component
Original file line number Diff line number Diff line change 44from chartlets .components import VegaChart , Box , Select
55
66from server .context import Context
7- from server .panel import ( Panel )
7+ from server .panel import Panel
88
99
1010panel = Panel (__name__ , title = "Panel B" )
You can’t perform that action at this time.
0 commit comments