-
This commit is contained in:
@@ -188,7 +188,7 @@
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
<%--Contratos Tab--%>
|
||||
<ajax:TabPanel ID="TabPanel1" runat="server" HeaderText="Contratos">
|
||||
<ajax:TabPanel ID="TabCont" runat="server" HeaderText="Contratos">
|
||||
<ContentTemplate>
|
||||
<%-- Contratos --%>
|
||||
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
||||
@@ -279,12 +279,37 @@
|
||||
<%--Calendario Tab--%>
|
||||
<ajax:TabPanel ID="TabGrantt" runat="server" HeaderText="Cronograma">
|
||||
<ContentTemplate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="chartdiv">
|
||||
<asp:UpdatePanel ID="UPPGantt" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="portlet solid grey-cascade portlet-filter">
|
||||
<div class="portlet-title portlet-filterT smalltitle">
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="expand"></a>
|
||||
</div>
|
||||
<div class="titlefiltros caption">
|
||||
<div class="row" style="height: 32px;">
|
||||
|
||||
<label class="col-md-1 truncate">Vista</label>
|
||||
<div class="col-md-1">
|
||||
<asp:DropDownList ID="DdlTipoVista" AutoPostBack="true" OnSelectedIndexChanged ="DdlTipoVista_SelectedIndexChanged" CssClass="form-control select2me input-sm select2me Widthall"
|
||||
Style="width: 100%;" runat="server">
|
||||
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
||||
<asp:ListItem Text="solo viaje" Value="1"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="chartdiv" style="width:100%; min-height:300px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
</ajax:TabPanel>
|
||||
</ajax:TabContainer>
|
||||
@@ -541,7 +566,7 @@
|
||||
layout: root.verticalLayout,
|
||||
paddingLeft: 0
|
||||
}));
|
||||
|
||||
|
||||
// Add legend
|
||||
// https://www.amcharts.com/docs/v5/charts/xy-chart/legend-xy-series/
|
||||
var legend = chart.children.push(am5.Legend.new(root, {
|
||||
@@ -625,6 +650,24 @@
|
||||
|
||||
chart.set("scrollbarY", scrollbarY);
|
||||
|
||||
/// evento para ajustar el alto del row
|
||||
var cellSize = 30;
|
||||
chart.events.on("datavalidated", function (ev) {
|
||||
|
||||
// Get objects of interest
|
||||
var chart = ev.target;
|
||||
var categoryAxis = chart.yAxes.getIndex(0);
|
||||
|
||||
// Calculate how we need to adjust chart height
|
||||
var adjustHeight = chart.data.length * cellSize - categoryAxis.pixelHeight;
|
||||
|
||||
// get current chart height
|
||||
var targetHeight = chart.pixelHeight + adjustHeight;
|
||||
|
||||
// Set it on chart's container
|
||||
chart.svgContainer.htmlElement.style.height = targetHeight + "px";
|
||||
});
|
||||
|
||||
// Make stuff animate on load
|
||||
// https://www.amcharts.com/docs/v5/concepts/animations/
|
||||
series.appear();
|
||||
|
||||
Reference in New Issue
Block a user