removed google map chart
This commit is contained in:
@@ -1273,45 +1273,6 @@ def leaflet_chart2(lat,lon,name=""):
|
|||||||
|
|
||||||
return script,div
|
return script,div
|
||||||
|
|
||||||
def googlemap_chart(lat,lon,name=""):
|
|
||||||
if lat.empty or lon.empty:
|
|
||||||
return [0,"invalid coordinate data"]
|
|
||||||
# plot tools
|
|
||||||
TOOLS = 'save,pan,box_zoom,wheel_zoom,reset,tap,resize'
|
|
||||||
|
|
||||||
map_options = GMapOptions(lat = lat.mean(),lng=lon.mean(),
|
|
||||||
map_type="roadmap",zoom=13)
|
|
||||||
|
|
||||||
plot = GMapPlot(
|
|
||||||
x_range=DataRange1d(), y_range=DataRange1d(),
|
|
||||||
map_options=map_options,
|
|
||||||
api_key = "AIzaSyAgu1w9QSthaGPMLp8y9JedPoMc9sfEgJ8",
|
|
||||||
plot_width=400,plot_height=400,
|
|
||||||
toolbar_sticky=False,
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
source = ColumnDataSource(
|
|
||||||
data = dict(
|
|
||||||
lat=lat,
|
|
||||||
lon=lon,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
circle = Circle(x="lon",y="lat",size=5,fill_color="blue",
|
|
||||||
fill_alpha=0.2,line_color=None)
|
|
||||||
plot.add_glyph(source,circle)
|
|
||||||
plot.add_tools(PanTool(), WheelZoomTool(),
|
|
||||||
SaveTool(), ResizeTool(), ResetTool(),
|
|
||||||
TapTool(),CrosshairTool(),
|
|
||||||
)
|
|
||||||
plot.title.text = name
|
|
||||||
plot.title.text_font="1.0em"
|
|
||||||
script, div = components(plot)
|
|
||||||
|
|
||||||
return [script,div]
|
|
||||||
|
|
||||||
def interactive_agegroupcpchart(age,normalized=False):
|
def interactive_agegroupcpchart(age,normalized=False):
|
||||||
durations = [1,4,30,60]
|
durations = [1,4,30,60]
|
||||||
distances = [100,500,1000,2000,5000,6000,10000,21097,42195]
|
distances = [100,500,1000,2000,5000,6000,10000,21097,42195]
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user