jQWidgets Forums
jQuery UI Widgets › Forums › Chart › last value not displaying in chart
Tagged: #chart #lastvalueerror
This topic contains 1 reply, has 2 voices, and was last updated by Martin 6 years, 10 months ago.
-
Author
-
i built the chart in which last value is not displaying
var settings = {
title: $(“#channelListDropDown”).jqxDropDownList(‘getSelectedItem’).label,
description: storedUnit,
enableAnimations: true,
//animationDuration: 1500,
enableCrosshairs: true,
padding: { left: 20, top: 20, right: 20, bottom: 5 },
colorScheme: ‘scheme17’,
showToolTips: true,
source: graphDataAdapter,
xAxis:
{
dataField: ‘index’,
type: ‘basic’,
valuesOnTicks: true,
minValue: 0,
maxValue: Size-1,
labels:
{
formatFunction: function (value) {
return value.toString();//value + ‘-‘ + ‘<br>’ +
}
},
gridLines: {visible: false},
rangeSelector: {
size: 100,
padding: { top: 10, bottom: 0 },
backgroundColor: ‘white’,
dataField: ‘value’,
baseUnit: ‘index’,
showGridLines: false,
formatFunction: function (value) {
return value.toString();
}
}
},
seriesGroups:
[
{
type: ‘line’,
linesUnselectMode: ‘click’,
toolTipFormatFunction: toolTipCustomFormatFn,
valueAxis:
{
title: {text: storedUnit+'<br>’},
gridLines: {visible: false},
},
click: selectIndex,
series: [
{
dataField: ‘value’,
displayText: ‘Value’,
lineWidth: 1,
colorFunction: function (value, itemIndex, serie, group) {if (isNaN(itemIndex))
return ‘#000099’;
if (typeof selectedChannelRawData === ‘undefined’)
{
return ‘#000099’;
}if(typeof selectedChannelRawData[itemIndex] === ‘undefined’){
return ‘#000099’;
}
if(typeof selectedChannelRawData[itemIndex][‘valid’] === ‘undefined’){return ‘#000099’;
}return (selectedChannelRawData[itemIndex][‘valid’] == true) ? ‘#000099’ : ‘#ffdf80’;
}
}
]
}/*,
{
type: ‘area’,
toolTipFormatFunction: toolTipCustomFormatFn,
linesUnselectMode: ‘click’,
valueAxis:
{
position: ‘right’,
title: {text: ‘<br>Daily Volume’},
gridLines: {visible: false},
labels:
{
formatFunction: function (value) {
return value / 1000000 + ‘M’;
}
}
},
series: [
{
dataField: ‘SPVolume’,
displayText: ‘S&P Index Volume’,
lineWidth: 1,
opacity: 0.2
}
]
}*/
]
};Link for the image:
chart ImageHello wpd,
Can you, please, be a bit more specific about what the issue is?
It is not clear from the image that you have sent which last value is no appearing.
Thank you!Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.