|
282 | 282 | </div> |
283 | 283 | </div> |
284 | 284 |
|
285 | | - |
286 | 285 | {# X-axis label orientation #} |
287 | 286 | {% set text_rotation = h.querytool_get_tick_text_rotation() %} |
288 | 287 | {% if selected_chart_type in ['pie', 'donut'] %} |
|
301 | 300 | </div> |
302 | 301 | </div> |
303 | 302 |
|
| 303 | + |
| 304 | + |
304 | 305 | {# X-axis label multiline #} |
305 | 306 | {% if chart %} |
306 | 307 | {% set x_text_multiline = chart.x_text_multiline %} |
|
370 | 371 | <div id="accordion_{{ chart_id }}_y_axis" class="accordion-body collapse"> |
371 | 372 | <div class="accordion-inner"> |
372 | 373 |
|
| 374 | + |
373 | 375 | {# Y-axis title #} |
374 | 376 | {% if chart %} |
375 | 377 | {% set y_label = chart.y_label %} |
|
454 | 456 | <div id="accordion_{{ chart_id }}_graph" class="accordion-body collapse"> |
455 | 457 | <div class="accordion-inner"> |
456 | 458 |
|
| 459 | + {# X sorting #} |
| 460 | + {% set sort_options = h.querytool_get_chart_sort() %} |
| 461 | + <div id="chart_field_sort_div_{{ n }}" class="control-group control-select {% if chart and chart.category_name %}hidden{% endif %}"> |
| 462 | + <label class="control-label" for="chart_field_sort_{{ n }}">{{ _('Data sorting') }}</label> |
| 463 | + <div class="controls "> |
| 464 | + <select id="chart_field_sort_{{ n }}" name="chart_field_sort_{{ n }}" > |
| 465 | + {% for sort in sort_options %} |
| 466 | + <option value="{{ sort.value }}" {% if chart %}{{ 'selected' if sort.value == chart.sort }}{% endif %} >{{ sort.text }}</option> |
| 467 | + {% endfor %} |
| 468 | + </select> |
| 469 | + </div> |
| 470 | + </div> |
457 | 471 |
|
458 | 472 | {# Data format #} |
459 | 473 | {% set data_formats = h.queytool_get_charts_data_formats() %} |
|
473 | 487 | </div> |
474 | 488 | </div> |
475 | 489 |
|
476 | | - {# X sorting #} |
477 | | - {% set sort_options = h.querytool_get_chart_sort() %} |
478 | | - <div id="chart_field_sort_div_{{ n }}" class="control-group control-select {% if chart and chart.category_name %}hidden{% endif %}"> |
479 | | - <label class="control-label" for="chart_field_sort_{{ n }}">{{ _('Data sorting') }}</label> |
480 | | - <div class="controls "> |
481 | | - <select id="chart_field_sort_{{ n }}" name="chart_field_sort_{{ n }}" > |
482 | | - {% for sort in sort_options %} |
483 | | - <option value="{{ sort.value }}" {% if chart %}{{ 'selected' if sort.value == chart.sort }}{% endif %} >{{ sort.text }}</option> |
484 | | - {% endfor %} |
485 | | - </select> |
486 | | - </div> |
487 | | - </div> |
488 | | - |
489 | 490 | {# Donut chart hole #} |
490 | 491 | {% if chart %} |
491 | 492 | {% set donut_hole = chart.donut_hole or 0.4 %} |
|
629 | 630 | </div> |
630 | 631 | {# {% endif %} #} |
631 | 632 |
|
632 | | - {# X sorting #} |
633 | | - {% set sort_options = h.querytool_get_chart_sort() %} |
634 | | - <div id="chart_field_sort_div_{{ n }}" class="control-group control-select {% if chart and chart.category_name %}hidden{% endif %}"> |
635 | | - <label class="control-label" for="chart_field_sort_{{ n }}">{{ _('Data sorting') }}</label> |
636 | | - <div class="controls "> |
637 | | - <select id="chart_field_sort_{{ n }}" name="chart_field_sort_{{ n }}" > |
638 | | - {% for sort in sort_options %} |
639 | | - <option value="{{ sort.value }}" {% if chart %}{{ 'selected' if sort.value == chart.sort }}{% endif %} >{{ sort.text }}</option> |
640 | | - {% endfor %} |
641 | | - </select> |
642 | | - </div> |
643 | | - </div> |
644 | 633 |
|
645 | 634 | </div> |
646 | 635 | </div> |
|
0 commit comments