Buy Now
Sign in

How to build a graph

webcrea , April 24 2018
webcrea 573
April 24 2018 #377255
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.
graphe.jpg
On the front i have
[h1]0 Unsupported operand types[/h1]
If you have any idea to solve it ?
Regards
Christophe
http://www.webcrea.fr
webcrea 573
April 24 2018 #377256
graphe1.jpg
Attachments
graphe1.jpg
graphe1.jpg
(81.29 KiB)
197 Downloads/Views
Christophe
http://www.webcrea.fr
healyhatman 5.1
May 13 2018 #377653
Did you figure it out?
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
healyhatman 5.1
May 13 2018 #377654
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}
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
webcrea 573
May 14 2018 #377657
Sorry,
I don't understand your answer
Christophe
http://www.webcrea.fr
healyhatman 5.1
May 14 2018 #377658
I was posting a debug trace for the developer in the hopes it might one day be fixed.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
webcrea 573
May 14 2018 #377659
ok
Christophe
http://www.webcrea.fr
webcrea 573
May 14 2018 #377660
Max help us
Christophe
http://www.webcrea.fr