TODO / Backlog * refactor various hardcoded constant pixel offsets in Graph class to use named constants or variables * Fix bug in Plot where min/max_x/y_value are not respected, TODO === 2.2.3 / === 2.2.2 / 2023-04-30 * fix line9 color typo in Line.rb [thanks, akostadinov #42] * anchor right y labels [thanks, akostadinov #44] * start line from first point, not 0 0 [thanks, akostadinov #43] === 2.2.1 / 2020-12-25 * Remove inline styling for data point labels and popups [thanks marnen, PR #23] * fix #29 text background not aligned close to axis due to missing anchors * add & document :shape and :url hash keys for `add_data` [thanks t12nslookup, PR #32] * add custom datapoint support to Line graphs * Add white text behind popup text so that the black text is more readable [thanks t12nslookup, PR #30] * fix #19 rotated lables should no longer be cropped or overlapping === 2.2.0 / 2019-11-26 * on top of 2.2.0.beta adds the following * Fixed Divizion by zero when data is 0,0 in Pie [thanks chrismedrdz, PR #16] * Automatically render graphs in iruby [thanks dansbits, PR #14] === 2.2.0.beta / 2019-05-07 * Fix typo in Plot's `scale_y_integers` [thanks ashleydavies, PR #9] * Fix bug in Plot which enabled too-short axis [thanks ashleydavies, PR #10] * Fix issue where horizontal bar graphs were not lined up properly [thanks erullmann] * removed some outdated documentation and uneeded files * add support for c3js / d3js based graphs `SVG::Graph::C3js`, see http://c3js.org/ * add *very* basic unit tests for all types of graphs * add :show_percent for Bar graphs [thanks Cameron2920] * add :inline_style_sheet parameter for all graphs to allow inline css instead of specifying external stylesheets via url [thanks erullmann] * add parameters to control the key :key_box_size, :key_spacing, :key_width [thanks erullmann] * add support for X and Y label rotation to be different than 90 degree [thanks frenkel, PR #12] === 2.1.3 / 2017-12-27 * fixes float comparison and color for pie chart [thanks tiwi, pull request #7] === 2.1.2 / 2017-02-26 * show_key_actual_values in pie chart lets user chose to show values in key [thanks olegsfinest, pull request #5] === 2.1.1 / 2017-02-26 * Bar graphs are rounding bars to nearest Y axis label number [thanks adamalbrecht, pull request #4] === 2.1.0 / 2017-02-26 [lumean] * [#2] change behavior for number format, Strings axis labels will never be formatted previously, when containing numbers they were formatted with the number_format template * [#3] added options to change x-axis and y-axis position :x_axis_position and :y_axis_position * x_guidelines and y_guidelines can now be drawn independently of show_x_labels and show_y_labels, before they were only drawn if show_x_labels resp show_y_labels was true * fix number_format not being applied to x-axis labels * fix popups being somtimes outside visible region of graph === 2.0.2 / 2016-10-24 [lumean] * fix axis-title positioning * fix/add support for popups of values line, plot, bar graph * Line,Plot,Pie graph support nil values (or pairs of nil for plot) for non-present datapoints * fix show datapoint labels: changed text anchor of first datapoint label to avoid overlap with axis and text anchor of last datapoint label * fix pie graph key overlapping the graph [thanks adamalbrecht for reporting] * fix axis titles positioning for staggered axis (prevent overlap) * fix axis labels and positioning when scale_integers is true and min value is not integer. * added various comments in the code to be better understandable (for me) === 2.0.1 / 2016-08-09 * dropped support for ruby 1.8.7 [lumean] * Merge ErrBar graph from https://github.com/mondhs/svg-graph * Merge number formatting to have more readable floats from https://github.com/mondhs/svg-graph * fix warnings [lumean] * make TimeSeries and Schedule work with ruby >2.0 and the Date/DateTime stdlib [lumean] * dropped support for 'parsedate', instead TimeSeries and Schedule now accept a template to parse the date or time representation [lumean] * all ruby files in the test directory now run on ruby >2.0 and write output to files [lumean] * changed from autoload to static loading due to issues with unit-testing when the gem is not installed [lumean] * begin transition to minitest for tests [lumean] * merged fix for 100% pie graphs from https://github.com/endersstocker/svg-graph * fix wrong margins for labels after merge of number formatting [lumean] * Add new option for locations for the axis titles (at the end of the axis instead of below / left from it) [lumean] * improved x-axis label location when x-axis marks are vertical and long [lumean] === 1.0.5 / 2011-09-03 * enabled all svg_graph tests[liehann] === 1.0.4 / 2011-09-03 * Data point shape is configurable based on rule matches on description. It defaults to usual circle with radius 2.5. [pgbossi] * New shapes can be specified through lambdas that accept parameters x,y (coordinates) and the dataset number.[pgbossi] * Max x and y values & allow Time objects in TimeSeries data. [pgbossi] * Popup hovering area is now customizable (it defaults to radius=10). [pgbossi] * Some DataPoint shapes can be marked as overlays. [pgbossi] === 1.0.3 / 2011-08-04 * Removed unused variables which raises warnings on ruby head * Bug fix: Test raises error on different order of xml attribute * Merge pull request #2 from liehann/master * Max values and improved Time data handling. * Merge pull request #1 from thinkingbox/master * Adding scattered plot support with :show_lines =>false Rounding values to integers in popups can be disabled with :round_popups => false Optional description gets shown in popup