x axis on graphs
This commit is contained in:
parent
18bd2ed96d
commit
19144377fe
@ -68,6 +68,17 @@
|
||||
choisir comme actuel
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if festival.user|length %}
|
||||
{% for u in festival.user %}
|
||||
<span class="badge badge-info">{{ u.username }}</span>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
|
||||
pas d'owner.
|
||||
</div>
|
||||
{% endif %}
|
||||
<ul>
|
||||
<li class="pull-left">
|
||||
<a class="btn btn-primary" href="{{ path('festival_show', { 'id': festival.id }) }}">voir
|
||||
|
@ -95,17 +95,32 @@
|
||||
<script>
|
||||
|
||||
var dataPoints = [
|
||||
{% for pair in statisticsSoldProducts %}
|
||||
{ label: "{{ pair.name }}", y: {{ pair.count }} },
|
||||
{% for pair in statisticsSoldProducts %}
|
||||
{
|
||||
label: "{{ pair.name }}",
|
||||
x: {{ pair.count }},
|
||||
y: {{ pair.count }}
|
||||
},
|
||||
{% endfor %}
|
||||
];
|
||||
var dataPointsChiffreAffaire = [
|
||||
{% for pair in statisticsSoldProducts %}
|
||||
{ label: "{{ pair.name }}", y: {{ pair.value }} },
|
||||
{
|
||||
label: "{{ pair.name }}",
|
||||
x: {{ pair.value }},
|
||||
y: {{ pair.value }}
|
||||
},
|
||||
{% endfor %}
|
||||
];var dataPointsFestivals = [
|
||||
];
|
||||
var dataPointsFestivals = [
|
||||
{% for pair in statisticsFestivals %}
|
||||
{ label: "{{ pair.name }}", y: {{ pair.chiffreAffaire }} , countClients : {{ pair.clients_count }}, date: "{{ pair.date |date('Y-m-d')}}" },
|
||||
{
|
||||
label: "{{ pair.name }}",
|
||||
name: "{{ pair.name }}",
|
||||
x: "{{ pair.date |date('Y-m-d')}}",
|
||||
y: {{ pair.chiffreAffaire }} ,
|
||||
countClients : {{ pair.clients_count }}
|
||||
},
|
||||
{% endfor %}
|
||||
];
|
||||
console.log(dataPointsFestivals);
|
||||
|
@ -59,7 +59,6 @@ class DefaultController extends Controller
|
||||
1);
|
||||
}
|
||||
if ($lastFestival) {
|
||||
|
||||
$lastFestival->recalculateChiffreAffaire();
|
||||
}
|
||||
$categRepo = $m->getRepository('AppBundle:ProductCategory');
|
||||
@ -453,7 +452,7 @@ class DefaultController extends Controller
|
||||
$m->flush();
|
||||
|
||||
// replace this example code with whatever you need
|
||||
return $this->redirectToRoute('dashboard');
|
||||
return $this->redirectToRoute('festival_index');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user