Forums

How to build a graph

webcrea 24 Apr, 2018
Hello,

I try to build some graph from the widget "graphe".
I process a read data with 2 fields date and value.
In debug the data are there.



On the front i have
​[h1]0 Unsupported operand types[/h1]

If you have any idea to solve it ?
Regards
healyhatman 13 May, 2018
Error Object
(
[message:protected] => Unsupported operand types
[string:Error:private] =>
[code:protected] => 0
[file:protected] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/helpers/chart.php
[line:protected] => 54
[trace:Error:private] => Array
(
[0] => Array
(
[file] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/admin/extensions/chronofc/views/chart/chart_output.php
[line] => 53
[function] => render
[class] => G2\H\Chart
[type] => ::
[args] => Array
(
[0] => Array
(
[0] => Array
(
[client] => Array
(
[name] => test
[NumberOfTimesheets] => 2
[total_hours] => 17.00
)

)

)

[1] => Array
(
[x_field] => client.NumberOfTimesheets
[y_field] => client.name
[xaxis_labels_rotate] =>
[x_field_title] => Client
[y_field_title] => Hours
[width] => 550
[height] => 600
[bottom_indent] => 100
[left_indent] => 50
[axis_label_color] => black
[field_label_color] => blue
[bar_label_color] => red
[bar_color] => green
)

)

)

[1] => Array
(
[file] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/libs/view.php
[line] => 264
[args] => Array
(
[0] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/admin/extensions/chronofc/views/chart/chart_output.php
)

[function] => include
)

[2] => Array
(
[file] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/libs/view.php
[line] => 336
[function] => _contents
[class] => G2\L\View
[type] => ->
[args] => Array
(
[0] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/admin/extensions/chronofc/views/chart/chart_output.php
[1] => Array
(
[view] => Array
(
[type] => chart
[name] => client_data_chart
[category] => Client Data
[data_provider] => {var:read_client_hours}
[x_field] => client.NumberOfTimesheets
[y_field] => client.name
[x_field_title] => Client
[y_field_title] => Hours
[width] => 550
[height] => 600
[bottom_indent] => 100
[left_indent] => 50
[top_indent] => 50
[right_indent] => 30
[xaxis_labels_rotate] =>
[axis_label_color] => black
[field_label_color] => blue
[bar_label_color] => red
[bar_color] => green
[owner_id] =>
[rules] => Array
(
[access] => Array
(
[owner] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
)

)

)

)

)

)

[3] => Array
(
[file] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/admin/extensions/chronofc/helpers/parser.php
[line] => 921
[function] => view
[class] => G2\L\View
[type] => ->
[args] => Array
(
[0] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/admin/extensions/chronofc/views/chart/chart_output.php
[1] => Array
(
[view] => Array
(
[type] => chart
[name] => client_data_chart
[category] => Client Data
[data_provider] => {var:read_client_hours}
[x_field] => client.NumberOfTimesheets
[y_field] => client.name
[x_field_title] => Client
[y_field_title] => Hours
[width] => 550
[height] => 600
[bottom_indent] => 100
[left_indent] => 50
[top_indent] => 50
[right_indent] => 30
[xaxis_labels_rotate] =>
[axis_label_color] => black
[field_label_color] => blue
[bar_label_color] => red
[bar_color] => green
[owner_id] =>
[rules] => Array
(
[access] => Array
(
[owner] =>
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
)

)

)

)

[2] => 1
)

)

[4] => Array
(
[file] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/admin/extensions/chronofc/helpers/parser.php
[line] => 237
[function] => view
[class] => G2\A\E\Chronofc\H\Parser
[type] => ->
[args] => Array
(
[0] => client_data_chart
)

)

[5] => Array
(
[file] => /server/path/public_html/dirtyworkx.com.au/libraries/cegcore2/admin/extensions/chronofc/helpers/parser.php
[line] => 681
[function] => parse
[class] => G2\A\E\Chronofc\H\Parser
[type] => ->
[args] => Array
(
[0] => {fn:read_client_hours}
webcrea 14 May, 2018
Sorry,

I don't understand your answer
healyhatman 14 May, 2018
I was posting a debug trace for the developer in the hopes it might one day be fixed.
This topic is locked and no more replies can be posted.