jQWidgets Forums
Forum Replies Created
-
Author
-
thanks so much
it great workvar settings = { title: "clg", description: "", showLegend: true, showBorderLine: false, enableAnimations: true, showToolTips: true, padding: { left: 20, top: 5, right: 20, bottom: 5 }, titlePadding: { left: 0, top: 0, right: 400, bottom: 10 }, source: sampleData, xAxis: { dataField: 'Day', gridLines: { visible: true }, flip: false, // axisSize: 'auto', textRotationAngle: 90, }, //columnSeriesOverlap: false, valueAxis: { flip: true, labels: { visible: true, // formatFunction: function (value) { // return parseInt(value / 1000000); // } } }, colorScheme: 'scheme02', seriesGroups: [ { type: 'stackedcolumn', orientation: 'horizontal', columnsGapPercent: 50, formatFunction: function (value) { console.log(value); if( typeof value != 'undefined'){ // var k = value.split('-'); //return k[0]+'%'; } }, labels: { //dataField: 'Total_per', visible: true, verticalAlignment: 'top', offset: { x: 0, y: -20 } }, series: kk() } ] };
my code, and i cant visiable tooltip when click column
pls look at my comment
`source type json
//{[id:123,name:’samle’,…]}
$(“#copy-shop”).click(function(e){
e.preventDefault();
var items = $(“#jqxWidget-shop-source”).jqxListBox(‘getSelectedItems’);
if(items){
for (var i = 0; i < items.length; i++) {$(“#jqxWidget-shop-source”).jqxListBox(‘removeItem’, items[i] );
//console.log(items[i].originalItem);
// out ojb
$(“#jqxWidget-shop-target”).jqxListBox(‘addItem’, items[i]);}
}
render();
});function render(){
var shop_list = new Array();
var user_list = new Array();
var items = $(“#jqxWidget-shop-target”).jqxListBox(‘getItems’);
for (var i = 0; i < items.length; i++) {
console.log(items[i].originalItem)
//here alway out null.
if( typeof items[i].originalItem=== “undefined”){user_list.push(items[i].value);
}
if(typeof items[i].originalItem=== “undefined”){
shop_list.push(items[i].value);
}}
$(‘input[name=”list-shop-id”]’).val(shop_list.join(‘,’));
$(‘input[name=”list-user-id”]’).val(user_list.join(‘,’));
}`
-
AuthorPosts