Giter Club home page Giter Club logo

Comments (8)

Lekensteyn avatar Lekensteyn commented on August 16, 2024

canvas work for me. Could it be a caching issue?

from cgp.

luqasz avatar luqasz commented on August 16, 2024

I am on FireFox. I have cleared cache and same error. Also tried on IE on windows 8.1. This error is displayed only in detail.php.

from cgp.

Lekensteyn avatar Lekensteyn commented on August 16, 2024

Could you show your config and/ or use View source and get the HTML source of the canvas tag containing the options?

from cgp.

luqasz avatar luqasz commented on August 16, 2024

HTML source
config.local.php
config.php
I also have PHP NOTICE in apache error.log. This however shows regardless of graph_type

from cgp.

Lekensteyn avatar Lekensteyn commented on August 16, 2024

For the E_NOTICE message, please open a new bug and insert the debugging information after applying the following patch and visiting that URL:

diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php
index 761f7c4..661ec23 100644
--- a/inc/collectd.inc.php
+++ b/inc/collectd.inc.php
@@ -75,6 +75,7 @@ function collectd_plugindata($host, $plugin=NULL) {
    # only return data about one plugin
    if (!is_null($plugin)) {
        $pdata = array();
+       print_R($data);
        foreach($data as $item) {
            if ($item['p'] == $plugin)
                $pdata[] = $item;

For this bug, the issue is exposed by $CONFIG['graph_smooth'] = true; and occurs because jsrrdgraph always assumes that options take a value which is not the case here. Let's see what can be done for that.

from cgp.

Lekensteyn avatar Lekensteyn commented on August 16, 2024

Try:

git clone --recursive https://github.com/Lekensteyn/CGP.git -b jsrrdgraph-as-submodule

from cgp.

luqasz avatar luqasz commented on August 16, 2024

Works with:

$CONFIG['graph_smooth'] = true;
$CONFIG['graph_type'] = 'hybrid';

👍 THX for your super quick fix.

For #88 (comment) I will open a new bug report and i have some ideas how to fix this.

from cgp.

pommi avatar pommi commented on August 16, 2024

Thanks Peter for fixing this! 👍

from cgp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.