Developed parameters for makeGameWeather that result in creation of both historicWeather array and gameWeather array, sequentially, when function is called
WIP Creating histogram creation function within variable plotHistory, as historicWeatherHistogram. Continuing to work out how to create usable data array using for loops through historicWeather array
Rough draft of histogram for-loops. Not working -- only outputting single array with 2 items in it at the moment. WIP
Copied and pasted histogram function from test_histogram, tested in console beforehand
Adding in histogram as plot, added lines in series weather object, added x2xis and y2axis. WIP
Bar graph now appears overlying payout curves WOOOO
Edited tick options for x2 and y2axis, added third item in frequency array (null) to get rid of data points labels on weather bars
Moved weather bar graph behind A and B graphs
Added function to create ticks array ticksWeatherX for weather graph
Corrected CSS for graph series to restore correct colors to A and B
Edited function for tick marks on weather graph so that it produces correct values in an array. However, now bar graph appears distorted with all bars overlapping at left of graph. why. WIP
Altered return statement in countOccurrence so that intervalWidth is taken into account, creates correct values in weatherticksX
Removed /2 markings that changed units to rain inches, and changed maxweather A and B and all climate means to reflect new units of inches of rain. Graph is off-center now and needs fixing.
Removed data point labels for vertex points, moved A and B labels to inside, created code for root1 and root2 that sets to 0 if less than 0
Fixed issue. Data point labels A and B are now at vertex. Roots may be negative, simply not shown on graph.
Added functions that calculate additional (x,y) point at normal upper and lower boundaries, added in point to parabolaArray. Now graph vertex is skewed...
Updated CSS to reflect new vertex position in array and new data point label position
Moved A and B data point labels to lower normal threshold point
added canvasOverlay that shows vertical line at x
X position of line is now at gameWeather[turn]