You are here

flot-examples-series-pie.html.twig in Flot 8

{% extends "flot-examples.html.twig" %}
{% block demo %}
{{ attach_library('flot_examples/series_pie') }}
<h3 id="title"></h3>
		<div class="demo-container">
			<div id="placeholder" class="demo-placeholder"></div>
			<div id="menu">
				<button id="example-1">{% trans %}Default Options{% endtrans %}</button>
				<button id="example-2">{% trans %}Without Legend{% endtrans %}</button>
				<button id="example-3">{% trans %}Label Formatter{% endtrans %}</button>
				<button id="example-4">{% trans %}Label Radius{% endtrans %}</button>
				<button id="example-5">{% trans %}Label Styles #1{% endtrans %}</button>
				<button id="example-6">{% trans %}Label Styles #2{% endtrans %}</button>
				<button id="example-7">{% trans %}Hidden Labels{% endtrans %}</button>
				<button id="example-8">{% trans %}Combined Slice{% endtrans %}</button>
				<button id="example-9">{% trans %}Rectangular Pie{% endtrans %}</button>
				<button id="example-10">{% trans %}Tilted Pie{% endtrans %}</button>
				<button id="example-11">{% trans %}Donut Hole{% endtrans %}</button>
				<button id="example-12">{% trans %}Interactivity{% endtrans %}</button>
			</div>
		</div>

		<p id="description"></p>

		<h3>{% trans %}Source Code{% endtrans %}</h3>
		<pre><code id="code"></code></pre>
{% endblock demo %}

File

flot_examples/templates/flot-examples-series-pie.html.twig
View source
  1. {% extends "flot-examples.html.twig" %}
  2. {% block demo %}
  3. {{ attach_library('flot_examples/series_pie') }}
  4. <h3 id="title"></h3>
  5. <div class="demo-container">
  6. <div id="placeholder" class="demo-placeholder"></div>
  7. <div id="menu">
  8. <button id="example-1">{% trans %}Default Options{% endtrans %}</button>
  9. <button id="example-2">{% trans %}Without Legend{% endtrans %}</button>
  10. <button id="example-3">{% trans %}Label Formatter{% endtrans %}</button>
  11. <button id="example-4">{% trans %}Label Radius{% endtrans %}</button>
  12. <button id="example-5">{% trans %}Label Styles #1{% endtrans %}</button>
  13. <button id="example-6">{% trans %}Label Styles #2{% endtrans %}</button>
  14. <button id="example-7">{% trans %}Hidden Labels{% endtrans %}</button>
  15. <button id="example-8">{% trans %}Combined Slice{% endtrans %}</button>
  16. <button id="example-9">{% trans %}Rectangular Pie{% endtrans %}</button>
  17. <button id="example-10">{% trans %}Tilted Pie{% endtrans %}</button>
  18. <button id="example-11">{% trans %}Donut Hole{% endtrans %}</button>
  19. <button id="example-12">{% trans %}Interactivity{% endtrans %}</button>
  20. </div>
  21. </div>
  22. <p id="description"></p>
  23. <h3>{% trans %}Source Code{% endtrans %}</h3>
  24. <pre><code id="code"></code></pre>
  25. {% endblock demo %}