Appreciate your efforts - some more feedback/testing:
NB Original Code Errors(non-fatal ?):
NB
http://www.jcsweb.biz/mef/client/wd_sce ... _F_02b.htm had some (non-fatal) errors:
Error: Highcharts error #16: http://www.highcharts.com/errors/16 highcharts.js:10:49
Unexpected value -Infinity parsing x attribute. highcharts.js:82:3
=> Original Code Issues:
NB1 Tab1 Map plot is not rendering
NB2 when you click on a Country in Tab2 Map it actually displays in Tab1 Country Chart (ie Tab "bleed-over")
I made your suggested changes :
281 - var mapChart => mapChart2 in:
http://www.jcsweb.biz/mef/client/wd_sce ... _F_02c.htm
..but it produced a new error in Firefox (but not in Edge or Chrome):
TypeError: countryChartMaps2.series is undefined[Learn More] Source_2tab_2map_01b_01c_F_02c.htm :261:1
=> Changed Code Issues:
NB3 Tab2 Map plot is not rendering
NB4 when you click on a Country in Tab1 Map it actually displays in Tab2 Country Chart (Tab "bleed-over")
I then, tried to make the .CSV data plotted in each Tab
completely distinct to eliminate this possible cause of "Tab "bleed-over"":
http://www.jcsweb.biz/mef/client/wd_sce ... _F_02d.htm
NB5 this didnt sort out any problems + now the DD select in Tab1 produces the Tab2 Map titles !! (more bleed-over !)
NB6 Interestingly if I change line 152 "var mapChart =" to "var mapChart1 ="
no Maps/Charts appear in either TAB ?!
It seems there is significant structural "bleed-over" (and Highcharts 16 error) when attempting to replicate a similar HighMap in a second Tab. I suspect this maybe an issue for HighMaps ?
Some thoughts:
Do not ALL "var" terms in Tab2 need renaming with "2" suffix to make them unique from Tab1 equivalents ?
eg
-- TAB1 vars
71 - var csvCodes, categories = [],countryChartMaps1 = null,data = [],countriesArray = [],countries = {},
115 - var points = mapChart.getSelectedPoints();
152 - var mapChart = Highcharts.mapChart('containerGVMaps1', {
-- TAB2 vars
200 - var csvCodes, categories = [],countryChartMaps2 = null,data = [],countriesArray = [],countries = {},
244 - var points = mapChart.getSelectedPoints();
281 - var mapChart2 = Highcharts.mapChart('containerGVMaps2', {
NB7 - I have already renamed "countryChartMaps?" as tab-specific
How crucial is the "Highcharts error #16" ??
Attached code:
Code: Select all
www.jcsweb.biz/mef/client/wd_scen_lev/Source_2tab_2map_01b_01c_F_02_various.zip