aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* jsrrdgraph: Performance fixPeter Wu2014-08-021-6/+9
| | | | | | | | | | | commit 2a74a333ff143499b465234f0395a4aad7bdaa78 ("Upgrade to javascriptrrd ver 1.1.1") converted getByteAt calls to a getEndianByteAt call, but this also introduced a branch operation. Since endianess is dependent on the file, we can move the switch_endian check outside the function. Performance improved from 0.148ms (n=336k) to .039ms (n=384k) which translates to about 30 seconds!
* jsrrdgraph: binaryXHR: jshint style fixesPeter Wu2014-08-021-257/+264
| | | | | | | | | | | Added jshint comment on top, added "use strict". Added missing semi-colons, converted to '===' (after validation). Added comment for `typeof strData == "unknown"`. Break one long line over two lines. There are no other changes except for whitespace and line ending changes. Check with `git diff -w`.
* jsrrdgraph: Fixed jshint warnings/errorsPeter Wu2014-08-0213-218/+185
| | | | | | | | | | | | | | | | | Many fall in the category missing semicolon, but there are legitimate bugs (like throwing an error with an undefined variable, using isInfinite instead of !isFinite or fabs instead of Math.abs). At some places, I moved the variable declarations to avoid duplicate definition warnings. Redundant breaks have been removed (after return / throw). Global variables were implicitly defined in RrdDataFile (which caught my attention) and Base64, these have been made local. Also fixed some whitespace errors. Yay, the consistency. Not all (style) issues are fixed.
* jsrrdgraph: Fix get reponseText in FetchBinaryURLManuel Luis Sanmartín Rozada2014-07-251-1/+1
|
* jsrrdgraph: Upgrade to javascriptrrd ver 1.1.1Manuel Luis Sanmartín Rozada2014-07-252-85/+143
|
* jsrrdgraph: Fix ident. Thanks to PoilManuel Luis Sanmartín Rozada2014-07-251-3/+3
|
* jsrrdgraph: Check when this.gdes[i].legend is nullManuel Luis Sanmartín Rozada2014-07-251-2/+7
|
* jsrrdgraph: Fix textalign name typo. Thanks to PoilManuel Luis Sanmartín Rozada2014-07-253-9/+9
|
* jsrrdgraph: Fix flags parsing (options without a value)Peter Wu2014-07-251-97/+92
| | | | | Also fix some typos and white-space issues. Reported at https://github.com/pommi/CGP/issues/88
* Defensive programming: more urlencode/htmlentitiesPeter Wu2014-07-201-1/+1
| | | | | | | | | | | | | | | | | | Make build_url return an URL, not HTML. This separates presentation from data. plugin_header's return value is unused, remove the unnecessary return. At places where `printf("<tag att='%s'>", $x);` is used, it is now converted to `printf("<tag att=\"%s\">", htmlentities($x));` since the single quote is not escaped by default by htmlentities. In case the canvas style is used, JS should use `textContent` instead of `innerHTML` to avoid reading `&quot;` instead of `"`. Nobody (should) use(s) IE6 anymore, so it is a safe change. While at it, use the standard charset attribute of meta to specify the character set (UTF-8).
* jsrrdgraph: RrdGraph.js: make HRULE support reference to variablePim van den Berg2014-07-051-1/+3
| | | | | | The value of HRULE could be a reference to for example a VDEF variable. Closes #85
* jsrrdgraph: Fix graph width to look like rrdtool.Manuel Luis Sanmartín Rozada2014-06-281-2/+1
|
* jsrrdgraph: Fix errors in second axis.Manuel Luis Sanmartín Rozada2014-06-281-2/+2
|
* Add a configuration option for sync/async choice for the canvas graphsVincent Brillault2014-01-123-22/+42
|
* jsrrdgraph: CGP.js: split draw(id) into prepare_draw(id) and draw(id)Vincent Brillault2014-01-121-1/+7
|
* jsrrdgraph: Change alter for thowManuel Luis Sanmartín Rozada2014-01-121-4/+2
|
* jsrrdgraph: RrdGraph.js: Add RrdGraph.prototype.graph_paint_async methodVincent Brillault2014-01-121-0/+93
|
* jsrrdgraph: RrdDataFile.js: Add async function (fetch_async) to RrdDataFileVincent Brillault2014-01-121-0/+39
|
* jsrrdgraph: RrdGraph.js: splitting RrdGraph.prototype.graph_paint into init, ↵Vincent Brillault2014-01-121-3/+13
| | | | fetch and draw
* jsrrdgraph: RrdGraph.js: fix some indentationVincent Brillault2014-01-121-4/+4
|
* jsrrdgraph: RrdDataFile.js: splitting fetch into fetch & buildVincent Brillault2014-01-121-10/+15
|
* jsrrdgraph: RrdDataFile.js: fix space/tabulationVincent Brillault2014-01-121-21/+21
|
* jsrrdgraph: RrdGraph.js: gprint: fix check for undefined format in case of vdefPim van den Berg2013-05-181-1/+1
| | | | | | | | | | The GPRINT of a VDEF doesn't have a CF. For example: > "GPRINT:avg:LAST:%5.1lf%s Last" > "GPRINT:tot:%5.1lf%s Total\l" The format will be passed via the cf variable, so format is not defined. But it didn't show up in the legend. Firebug showed variable format isn't undefined, but an empty string in case of VDEF. So just check for falsy.
* integrate jsrrdgraph in CGPPim van den Berg2013-05-181-0/+124
|
* jsrrdgraph: RrdGraph.js: fix undefined 2nd argument of RrdVdef functionPim van den Berg2013-05-131-1/+1
| | | | | This fixes this error: > TypeError: Cannot call method 'indexOf' of undefined at new RrdVdef
* import js directory from jsrrdgraph for client side graph renderingPim van den Berg2013-05-1015-0/+7984
Source: https://github.com/manuelluis/jsrrdgraph@276b880