Bar Chart - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Bar Chart (/showthread.php?tid=1847) |
Bar Chart - Bar4tus - 18.01.2019 Hi, I need to create a column chart with weekly electricity consumption and water consumption. I need to connect KNX objects with data from Monday to Sunday and show them on the bar graph, I need to use Google api or something like that? I'm just starting with js and css, so I need help RE: Bar Chart - admin - 18.01.2019 Why not use trends in week view? It won't be a bar chart but it works without any extra programming. Google charts can also be used but that requires some extra effort. Short example here: https://forum.logicmachine.net/showthread.php?tid=1400 RE: Bar Chart - Bar4tus - 18.01.2019 (18.01.2019, 14:06)admin Wrote: Why not use trends in week view? It won't be a bar chart but it works without any extra programming. Google charts can also be used but that requires some extra effort. Short example here: https://forum.logicmachine.net/showthread.php?tid=1400 Yes, can use trends but trends didn't show how many kWh we use in week. If I use bar i can show that, for example in monday we usuage 60kWh per day and 2m^3 water per day, in trends clients not look that. RE: Bar Chart - Daniel - 18.01.2019 Month view shows days consumption, RE: Bar Chart - Bar4tus - 18.01.2019 (18.01.2019, 16:45)Daniel. Wrote: Month view shows days consumption, No don't show day consumption, it show's only average value on that day, this value is not sum of value per day RE: Bar Chart - admin - 20.01.2019 You have probably selected absolute value mode instead of counter. RE: Bar Chart - Bar4tus - 20.01.2019 (20.01.2019, 08:33)admin Wrote: You have probably selected absolute value mode instead of counter. Yes i use it. I should take counter ? RE: Bar Chart - admin - 21.01.2019 Yes, absolute value is meant for temperature sensors and similar data. In your case counter mode should be used. RE: Bar Chart - Bar4tus - 07.02.2019 (21.01.2019, 07:50)admin Wrote: Yes, absolute value is meant for temperature sensors and similar data. In your case counter mode should be used. Ok, can you give me more information how work, counter mode? I have data object were i have 15min power consumption, how i can show it. I need a chart with sum when turn weekly view. For example, I know that I use 1kWh per our, when i look at day view i see 24 point one per our with 1kWh value and it is correct, but when I use view weekly I need see 7 point with value 24kWh, but i see value 1kWh also. RE: Bar Chart - Daniel - 08.02.2019 Weekly view shows data in the same resolution as daily. Monthly view will show you daily consumption. RE: Bar Chart - admin - 08.02.2019 For counter mode to work properly you need a source object that has total consumption. From RRD docs: Quote:COUNTER is for continuous incrementing counters like the ifInOctets counter in a router. The COUNTER data source assumes that the counter never decreases, except when a counter overflows. RE: Bar Chart - equalizer - 11.02.2019 The raw data is stored in the history trend, the history service make this data available. Grab data, send to Google and then chart it? |