JavaScript
function setLegendsLabelPostion_Graph1() {
// alert("hello2");
// alert($("#chartContainer1").find(".jqx-chart-label-text").length);
$.each($("#chartContainer").find(".jqx-chart-label-text"), function (index, value) {
//alert( index + ": " + value );
$(this).attr("y", "10");
});
};
var data = [
{ "Value": "0.458", "Label": "06-19-19" },
{ "Value": "0.895", "Label": "06-20-19" },
{ "Value": "0.569", "Label": "06-21-19" },
{ "Value": "0.5565", "Label": "06-22-19" },
{ "Value": "0.5687", "Label": "06-23-19" },
{ "Value": "0.14587", "Label": "06-24-19" },
{ "Value": "0.1254", "Label": "06-25-19" }
];
var source = {
datatype: 'json',
localdata: data,
datafields: [
{
name: 'Date', type: 'date', map: 'Label', format: "MM-dd-yy"
},
{
name: 'ValuePoints', type: 'float', map: 'Value'
}
]
};
var dataAdapter = new $.jqx.dataAdapter(source, { autoBind: true });
var settingsColumn = {
title: { visible: false },
description: { visible: false },
showLegend: true,
enableAnimations: true,
borderLineColor: 'transparent',
padding: { left: 5, top: 5, right: 5, bottom: 5 },
titlePadding: { left: 90, top: 0, right: 0, bottom: 10 },
source: dataAdapter, //data,
xAxis:
{
dataField: 'Date',
gridLines: { visible: false },
valuesOnTicks: false,
type: 'date',
baseUnit: 'day'
},
colorScheme: 'scheme01',
columnSeriesOverlap: false,
seriesGroups:
[
{
type: 'column',
useGradient: false,
columnsGapPercent: 40,
seriesGapPercent: 100,
//indexLabel: "{y}",
valueAxis:
{
visible: false,
//baselineValue :0,
minValue: 0.0001,
unitInterval: .01,
title: { text: 'Volume(ML)<br>' }
},
series: [
{
dataField: 'ValuePoints', displayText: 'Volume(ML)', color: '#4B8CA8',
labels: {
visible: true, angle: '0',
verticalAlignment: 'top',
...