jQWidgets Forums
Forum Replies Created
-
Author
-
Even in the demo this is implemented. If you hover the mouse over the chart and scroll down, the tooltip stays there and disappears after 3 seconds.
Below is the setting.function drawPopupChart(vData){
let otel = [
{
type: “line”,
series: [
{
dataField: ‘HPRICE’,
displayText: ‘부동산114시세(상한)’,
color: ‘#009688’,
toolTipFormatFunction:function(value, itemIndex) {
return ‘ 시점 : ‘ + vData[itemIndex].TD + ‘</br>’ +
‘ 부동산114시세(상한) : ‘ + Math.round(vData[itemIndex].HPRICE).toLocaleString(‘ko-KR’);
},
toolTipFormatSettings: {
thousandsSeparator: “,”
},
opacity: 0.7
},
{
dataField: ‘LPRICE’,
displayText: ‘부동산114시세(하한)’,
color: ‘#F2B53F’,
toolTipFormatFunction:function(value, itemIndex) {
return ‘ 시점 : ‘ + vData[itemIndex].TD + ‘</br>’ +
‘ 부동산114시세(하한) : ‘ + Math.round(vData[itemIndex].LPRICE).toLocaleString(‘ko-KR’);
},
toolTipFormatSettings: {
thousandsSeparator: “,”
},
opacity: 0.7
},
{
dataField: ‘APRICE’,
displayText: ‘시세 평균’,
color: ‘#FF5252’,
toolTipFormatFunction:function(value, itemIndex) {
return ‘ 시점 : ‘ + vData[itemIndex].TD + ‘</br>’ +
‘ 시세 평균 : ‘ + Math.round(vData[itemIndex].APRICE).toLocaleString(‘ko-KR’);
},
toolTipFormatSettings: {
thousandsSeparator: “,”
},
opacity: 0.7
}
]
}
];let apt =[
{
type: “line”,
series: [
{
dataField: ‘HPRICE’,
displayText: ‘부동산114시세(상한)’,
color: ‘#009688’,
toolTipFormatFunction:function(value, itemIndex) {
return ‘ 시점 : ‘ + vData[itemIndex].TD + ‘</br>’ +
‘ 부동산114시세(상한) : ‘ + Math.round(vData[itemIndex].HPRICE).toLocaleString(‘ko-KR’);
},
toolTipFormatSettings: {
thousandsSeparator: “,”
},
opacity: 0.7
},
{
dataField: ‘LPRICE’,
displayText: ‘부동산114시세(하한)’,
color: ‘#F2B53F’,
toolTipFormatFunction:function(value, itemIndex) {
return ‘ 시점 : ‘ + vData[itemIndex].TD + ‘</br>’ +
‘ 부동산114시세(하한) : ‘ + Math.round(vData[itemIndex].LPRICE).toLocaleString(‘ko-KR’);
},
toolTipFormatSettings: {
thousandsSeparator: “,”
},
opacity: 0.7
},
{
dataField: ‘APRICE’,
displayText: ‘시세 평균’,
color: ‘#FF5252’,
toolTipFormatFunction:function(value, itemIndex) {
return ‘ 시점 : ‘ + vData[itemIndex].TD + ‘</br>’ +
‘ 시세 평균 : ‘ + Math.round(vData[itemIndex].APRICE).toLocaleString(‘ko-KR’);
},
toolTipFormatSettings: {
thousandsSeparator: “,”
},
opacity: 0.7
}
]
},
{
type: “scatter”,
series: [
{
dataField: ‘PRICE’
,symbolSize: 4
,color: ‘#FC6A08’
,symbolType: ‘diamond’
,displayText: ‘국토교통부 실거래가격’
,toolTipFormatFunction:function(value, itemIndex) {
return vData[itemIndex].FLR ;
}
}
]
}
];var settings = {
title: ”,
description: null,
enableAnimations: true,
showLegend: true,
padding: { left: 20, top: 20, right: 20, bottom: 20 },
titlePadding: { left: 10, top: 0, right: 0, bottom: 0 },
source: null,
xAxis: {
dataField: ‘TD’,
displayText: ‘시점’,
type: ‘date’, //date, basic, linear
baseUnit: ‘month’,
dateFormat: “yyyy.MM.dd”,
toolTipFormatSettings: {
dateFormat: “yyyy.MM.dd”
},
logarithmicScale: false,
logarithmicScaleBase: 2
},
valueAxis: {
position : ‘left’,
gridLines: {
visible: false
},
axisSize: “auto”,
position: “left”,
formatSettings: { thousandsSeparator: “,” }
},
seriesGroups: []
};if(!isEmpty(vData)){
var dataAdapter = new $.jqx.dataAdapter({
localdata: vData,
datafields: [
{name: “TD”, type: “date”},
{name: “HPRICE”, type: “number”},
{name: “LPRICE”, type: “number”},
{name: “APRICE”, type: “number”},
{name: “PRICE”, type: “number”},
]
});settings.source = dataAdapter;
}let chartId = ”;
switch(vGbId){
case ‘OTEL’:
settings.seriesGroups = otel;
chartId = ‘#otelPriceCht’;
break;
case ‘APT’:
settings.seriesGroups = apt;
chartId = ‘#aptPriceCht’;break;
}
$(chartId).jqxChart(settings);}
May 3, 2023 at 12:43 pm in reply to: Can't I set a value for items in jqxTree of jqwidgets? Can't I set a value for items in jqxTree of jqwidgets? #132936hello svetoslav_borislavov.
Your answer has been of great help. However, new problems arose during development. You need to check the It’s none other than checkbox and fire the event only once.
http://jsfiddle.net/48fq0y3g/3/
If you check the log on[4,1,2]
[4,1,2,3]
[4,1,2,3]
[4,1,2,3]
[4,1,2,3]This happens several times.
Is it possible to make the above log appear only once in the jqxtree event?
I’m really desperate. please.
March 23, 2023 at 5:41 am in reply to: Can we make a multidrop tree checkbox? Can we make a multidrop tree checkbox? #132766thanks to you! svetoslav_borislavov
March 22, 2023 at 4:47 am in reply to: Can we make a multidrop tree checkbox? Can we make a multidrop tree checkbox? #132762Hello. Svetoslav Borislavov The function I want to implement is this.
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxdropdownlist/index.htm#demos/jqxdropdownlist/checkboxes.htm
(jqxDropDownList – checkboxes) The sample provides the “DropDownList” and “Checkbox” functions. However, it does not provide a tree structure.Also, in other jqxweiget samples
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtree/index.htm#demos/jqxtree/dropdowntree.htm
(jqxTree – DropDown Tree) The sample provides a “tree” function and a “DropDownList” function. However, it does not provide a check box function.And another jqxweiget sample
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtree/index.htm#demos/jqxtree/checkboxes.htm(jqxTree – Checkboxes) The sample provides a “tree” function and a “Checkboxes” function. However, it does not provide drop-down functionality.
I would appreciate your help if there’s any way to make the jQWidgets dropdown, provide a tree, and check box function 3 at the same time.
Thank you for your kind reply. Svetoslav Borislavov
March 7, 2023 at 1:17 am in reply to: Can I change the style in a line chart without just changing the color? Can I change the style in a line chart without just changing the color? #132706hi Svetoslav Borislavov
I forgot to attach the url.
Please refer to the above for the route. In the sample, the line color changes to green or red depending on the value, and I wonder if it is possible to express red as a dotted line.P.S. In the sample below, you can express dotted lines by giving the option ” { dataField: ‘a’, displayText: ‘A’, symbolType: ‘square’, symbolSize: 6, dashStyle: ‘4,4’, lineWidth: 1 },” do
March 7, 2023 at 1:15 am in reply to: Can I change the style in a line chart without just changing the color? Can I change the style in a line chart without just changing the color? #132705hi Svetoslav Borislavov
I forgot to attach the url.
Please refer to the above for the route. In the sample, the line color changes to green or red depending on the value, and I wonder if it is possible to express red as a dotted line.June 23, 2022 at 6:11 am in reply to: Can I delete the Y axis of VALUEAXIS Can I delete the Y axis of VALUEAXIS #121897June 20, 2022 at 4:48 am in reply to: can i first click show moth calendar can i first click show moth calendar #121878problem solved
$(‘#fr, #to’).on(‘click’, function() {
$(“[id^=’cellTableViewinnerCalendarjqxWidget’]”).attr(“style”,’border-color: transparent; width: 100%; height: 100%;‘); //height was 170px;
});June 17, 2022 at 1:37 am in reply to: can i first click show moth calendar can i first click show moth calendar #121862Hi, svetoslav_borislavov
i try views:[“year”,”decade”] but
Initially like
and next click jqxdatetimeinput then
i dont want small button? size month plz Can’t you just do it like the second picture?
May 4, 2022 at 12:56 am in reply to: Is it possible to dynamically position jqxchart range selector? Is it possible to dynamically position jqxchart range selector? #121675thank you! Problem solved.
//init rangeSelector
var chart = $(chtid).jqxChart(‘getInstance’);
chart._selectorRange=[];
chart.update();thank you Martin Yotov!
but i have one question
My data has negative and decimal points ex(-4.555 or 2.666 ->>> -4,3). Is there any way to set it in the chart options? -
AuthorPosts