Skip to content

Commit

Permalink
RENAME: changing the name highcharts by vertica_highcharts (#5)
Browse files Browse the repository at this point in the history
* RENAME: changing the name highcharts by vertica_highcharts

* Update setup.py

* Update highcharts.py

* Corrections
  • Loading branch information
oualib authored Feb 10, 2023
1 parent 0249fd5 commit 6df56bf
Show file tree
Hide file tree
Showing 131 changed files with 146 additions and 146 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The main input is a python dictionary similar to Highcharts's 'options' object.
However, the data_set(s) need to be input by a separate function.

```python
from highcharts import Highchart
from vertica_highcharts import Highchart

# A chart is the container that your data will be rendered in, it can (obviously) support multiple data series within it.
chart = Highchart()
Expand Down Expand Up @@ -128,7 +128,7 @@ chart.add_drilldown_data_set(data_2, 'column', 'Chrome', name='Chrome')
## Example Usage

```python
from highcharts import Highchart
from vertica_highcharts import Highchart
chart = Highchart()

chart.set_options('chart', {'inverted': True})
Expand Down Expand Up @@ -221,7 +221,7 @@ The main input is a python dictionary similar to Highmaps's 'options' object. Th
However, the data_set(s) need to be input by a separate function.

```python
from highcharts import Highmap
from vertica_highcharts import Highmap

# A chart is the container that your data will be rendered in, it can (obviously) support multiple data series within it.
chart = Highmap()
Expand Down Expand Up @@ -397,7 +397,7 @@ chart.add_JSscript("var lines = Highcharts.geojson(Highcharts.maps['countries/us
Bad practice:
1) load data directly and handle it in Javascript 2) insert javascript into thea head 3) use unquote function RawJavaScriptText to prepare Javascript:
```python
from highcharts import Highmap
from vertica_highcharts import Highmap
from common import RawJavaScriptText

chart = Highmap()
Expand Down Expand Up @@ -485,7 +485,7 @@ chart.save_file()
Better practice:
```python

from highcharts import Highmap
from vertica_highcharts import Highmap
from highmap_helper import jsonp_loader, js_map_loader, geojson_handler

chart = Highmap()
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/3d-pie-donut.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
3D donut: http://www.highcharts.com/demo/3d-pie-donut
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=550, height=400)

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/3d-scatter-draggable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
3D scatter chart: http://www.highcharts.com/demo/3d-scatter-draggable
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=550, height=400)

"""
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/Example1.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
construct a option dictionary object and input using "set_dict_options" method
"""

from highcharts import Highchart # import highchart library
from vertica_highcharts import Highchart # import highchart library
H = Highchart() # setup highchart instance

data = list(range(1,20))
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/area-basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Basic area: http://www.highcharts.com/demo/area-basic
"""
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=750, height=600) # the size of chart can be set here

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/area-stacked-percent.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Percentage area: http://www.highcharts.com/demo/area-stacked-percent
"""
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=750, height=600)

data1 = [502, 635, 809, 947, 1402, 3634, 5268] # data for Asia
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/arearange-line.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Area range and line: http://www.highcharts.com/demo/arearange-line
"""
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=750, height=600)

ranges = [
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/bar-basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Basic bar: http://www.highcharts.com/demo/bar-basic
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=750, height=600)

data1 = [107, 31, 635, 203, 2]
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/bar-negative-stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Bar with negative stack: http://www.highcharts.com/demo/bar-negative-stack
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=550, height=400)

categories = ['0-4', '5-9', '10-14', '15-19',
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/box-plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Box plot: http://www.highcharts.com/demo/box-plot
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=550, height=400)

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/bubble.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Bubble chart: http://www.highcharts.com/demo/bubble
"""
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=850, height=400)

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/column-drilldown.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Column with drilldown: http://www.highcharts.com/demo/column-drilldown
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=850, height=400)

"""
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/column-placement.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Fixed placement columns: http://www.highcharts.com/demo/column-placement
"""
import datetime
from highcharts import Highchart
from vertica_highcharts import Highchart

H = Highchart(width=850, height=400)

Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/column-stacked-and-grouped.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Stacked and grouped column: http://www.highcharts.com/demo/column-stacked-and-grouped
"""
from highcharts import Highchart
from vertica_highcharts import Highchart

H = Highchart(width=750, height=600)

Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/combo-multi-axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Multiple axes: http://www.highcharts.com/demo/combo-multi-axes
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=850, height=400)

data1 = [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/error-bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Error bar: http://www.highcharts.com/demo/error-bar
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=550, height=400)

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Heatmap: http://www.highcharts.com/demo/heatmap
"""
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart()

data = [
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/line-basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Basic line: http://www.highcharts.com/demo/line-basic
"""
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart()

data_Tokyo = [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/line-time-series.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

import datetime
from highcharts import Highchart
from vertica_highcharts import Highchart

H = Highchart()

Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/pie-basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Pie chart, line and column: http://www.highcharts.com/demo/pie-basic
"""
import datetime
from highcharts import Highchart
from vertica_highcharts import Highchart

H = Highchart(width=850, height=400)

Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/pie-donut.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Donut chart: http://www.highcharts.com/demo/pie-donut
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width = 850, height = 400)

data = [{
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/polar-spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Spiderweb: http://www.highcharts.com/demo/polar-spider
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=550, height=400)

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Scatter plot: http://www.highcharts.com/demo/scatter
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=850, height=400)

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/spline-inverted.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Highcharts Demos
Spline with inverted axes: http://www.highcharts.com/demo/spline-inverted
"""
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart()

# set option
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/spline-irregular-time.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Time data with irregular intervals: http://www.highcharts.com/demo/spline-irregular-time
"""
from datetime import datetime
from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart()

winter_12_13_data = [
Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/spline-symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Spline with symbols: http://www.highcharts.com/demo/spline-symbols
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart()


Expand Down
2 changes: 1 addition & 1 deletion examples/highcharts/treemap-levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Treemap levels: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/treemap-levels/
"""

from highcharts import Highchart
from vertica_highcharts import Highchart
H = Highchart(width=550, height=400)

options = {
Expand Down
6 changes: 3 additions & 3 deletions examples/highmaps/Example1_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
2. set_map_source method:
set_map_source(map_src, jsonp_map = False)
map_src is the url (https) where map data is located,
it is recommended to get map data from highcharts' map collection:
it is recommended to get map data from vertica_highcharts' map collection:
https://code.highcharts.com/mapdata/
jsonp_map is boolean parameter if mapdata is loaded from jsonp
geojson (from jsonp) or .js are accepted formats.
default is javascript (.js) format (from highcharts)
default is javascript (.js) format (from vertica_highcharts)
The following example is from Highmaps Demos
GeoJSON areas: http://www.highcharts.com/maps/demo/geojson
"""

from highcharts import Highmap
from vertica_highcharts import Highmap
H = Highmap(width = 650, height = 500)

options = { # construct option dict
Expand Down
2 changes: 1 addition & 1 deletion examples/highmaps/category-map.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Categorized areas: http://www.highcharts.com/maps/demo/category-map
"""

from highcharts import Highmap
from vertica_highcharts import Highmap
H = Highmap(width=650, height=500)

options = {
Expand Down
2 changes: 1 addition & 1 deletion examples/highmaps/color-axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Color axis and data labels: http://www.highcharts.com/maps/demo/color-axis
"""

from highcharts import Highmap
from vertica_highcharts import Highmap
H = Highmap(width = 650, height = 550)

options = {
Expand Down
4 changes: 2 additions & 2 deletions examples/highmaps/geojson-multiple-types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Highmaps Demos
GeoJSON with rivers and cities: http://www.highcharts.com/maps/demo/geojson-multiple-types
"""
from highcharts import Highmap
from highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler
from vertica_highcharts import Highmap
from vertica_highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler

H = Highmap()
options = {
Expand Down
4 changes: 2 additions & 2 deletions examples/highmaps/latlon-advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Advanced lat/long: http://www.highcharts.com/maps/demo/latlon-advanced
"""

from highcharts import Highmap
from highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler, interpolateRGB
from vertica_highcharts import Highmap
from vertica_highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler, interpolateRGB

H = Highmap(height=550)
map_url = 'http://code.highcharts.com/mapdata/countries/us/us-all.js'
Expand Down
4 changes: 2 additions & 2 deletions examples/highmaps/map-drilldown-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Drilldown: http://www.highcharts.com/maps/demo/map-drilldown
"""

from highcharts import Highmap
from highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler
from vertica_highcharts import Highmap
from vertica_highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler

H = Highmap()
H.add_CSSsource('http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css')
Expand Down
6 changes: 3 additions & 3 deletions examples/highmaps/map-drilldown.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Drilldown: http://www.highcharts.com/maps/demo/map-drilldown
"""

from highcharts import Highmap
from highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler
from vertica_highcharts import Highmap
from vertica_highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler

"""
Drilldown is a techique to present data in different detail level.
Expand Down Expand Up @@ -66,7 +66,7 @@
H = Highmap()

"""
Drilldown map requires an additional JS library from highcharts, which can be added using
Drilldown map requires an additional JS library from vertica_highcharts, which can be added using
add_JSsource method
Also, it needs a bootstrap CSS file, which is added using add_CSSsource method
"""
Expand Down
4 changes: 2 additions & 2 deletions examples/highmaps/mappoint-latlon.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Map point with lat/long: http://www.highcharts.com/maps/demo/mappoint-latlon
"""

from highcharts import Highmap
from highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler
from vertica_highcharts import Highmap
from vertica_highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler

H = Highmap(height=750)
map_url = 'http://code.highcharts.com/mapdata/countries/gb/gb-all.js'
Expand Down
4 changes: 2 additions & 2 deletions examples/highmaps/us-counties-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Detailed map, US counties: http://www.highcharts.com/maps/demo/us-counties
"""

from highcharts import Highmap
from highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler
from vertica_highcharts import Highmap
from vertica_highcharts.highmaps.highmap_helper import jsonp_loader, js_map_loader, geojson_handler

H = Highmap()

Expand Down
Loading

0 comments on commit 6df56bf

Please sign in to comment.