How delete a line on Chart when hover mouse point?
this my chart when put mouse hover point have line , i when delete line because when click on point data display x-axis same data ex: if choice date on x-axis , have there colours each colour diff data but when have line its effect when click point all same data
look to my code . if someone he understand please get me help
Picture chart
look to picture to see chart only press on link chart
enter code here
//define graph line colors
import * as Style from 'styles/config';
export function getCustomTimeChart(chartData){
var legendLabels = ;
var lineColors = Style.lineColors;
//var entryData={};
chartData.data.forEach(function(entry){
entry.type = 'line';
legendLabels.push(entry.name);
//entryData=entry;
});
var title = '';
if (chartData.title){
//title = entryData.data;
title = chartData.title;
}
if (chartData.dataColors) lineColors = chartData.dataColors;
var option = {
title: {
show:false,
text: title
},
textStyle:{
color:Style.chartColor
},
color:lineColors,
tooltip: {
trigger: 'axis',
formatter: function (params) {
params = params[0];
return params.value[0] + ' : ' + params.value[1];
},
axisPointer: {
animation: false
}
},
legend: {
data:legendLabels,
textStyle:{
color:Style.chartColor
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {
title:'Image'
,
backgroundColor: Style.chartBackground
}
},
iconStyle:{
normal:{
borderColor:Style.chartColor
},
emphasis:{
borderColor:Style.chartColor
}
}
},
labels: chartData.labels,
xAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'time',
splitLine: {
show: false
},
distribution: 'series'
},
yAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'value',
boundaryGap: [0, '100%'],
splitLine: {
show: false
}
},
series: chartData.data
};
return option;
}
chart
javascript reactjs chart.js
add a comment |
this my chart when put mouse hover point have line , i when delete line because when click on point data display x-axis same data ex: if choice date on x-axis , have there colours each colour diff data but when have line its effect when click point all same data
look to my code . if someone he understand please get me help
Picture chart
look to picture to see chart only press on link chart
enter code here
//define graph line colors
import * as Style from 'styles/config';
export function getCustomTimeChart(chartData){
var legendLabels = ;
var lineColors = Style.lineColors;
//var entryData={};
chartData.data.forEach(function(entry){
entry.type = 'line';
legendLabels.push(entry.name);
//entryData=entry;
});
var title = '';
if (chartData.title){
//title = entryData.data;
title = chartData.title;
}
if (chartData.dataColors) lineColors = chartData.dataColors;
var option = {
title: {
show:false,
text: title
},
textStyle:{
color:Style.chartColor
},
color:lineColors,
tooltip: {
trigger: 'axis',
formatter: function (params) {
params = params[0];
return params.value[0] + ' : ' + params.value[1];
},
axisPointer: {
animation: false
}
},
legend: {
data:legendLabels,
textStyle:{
color:Style.chartColor
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {
title:'Image'
,
backgroundColor: Style.chartBackground
}
},
iconStyle:{
normal:{
borderColor:Style.chartColor
},
emphasis:{
borderColor:Style.chartColor
}
}
},
labels: chartData.labels,
xAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'time',
splitLine: {
show: false
},
distribution: 'series'
},
yAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'value',
boundaryGap: [0, '100%'],
splitLine: {
show: false
}
},
series: chartData.data
};
return option;
}
chart
javascript reactjs chart.js
Don't use only link, instead show your code.
– Poul Bak
Nov 18 '18 at 8:18
add a comment |
this my chart when put mouse hover point have line , i when delete line because when click on point data display x-axis same data ex: if choice date on x-axis , have there colours each colour diff data but when have line its effect when click point all same data
look to my code . if someone he understand please get me help
Picture chart
look to picture to see chart only press on link chart
enter code here
//define graph line colors
import * as Style from 'styles/config';
export function getCustomTimeChart(chartData){
var legendLabels = ;
var lineColors = Style.lineColors;
//var entryData={};
chartData.data.forEach(function(entry){
entry.type = 'line';
legendLabels.push(entry.name);
//entryData=entry;
});
var title = '';
if (chartData.title){
//title = entryData.data;
title = chartData.title;
}
if (chartData.dataColors) lineColors = chartData.dataColors;
var option = {
title: {
show:false,
text: title
},
textStyle:{
color:Style.chartColor
},
color:lineColors,
tooltip: {
trigger: 'axis',
formatter: function (params) {
params = params[0];
return params.value[0] + ' : ' + params.value[1];
},
axisPointer: {
animation: false
}
},
legend: {
data:legendLabels,
textStyle:{
color:Style.chartColor
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {
title:'Image'
,
backgroundColor: Style.chartBackground
}
},
iconStyle:{
normal:{
borderColor:Style.chartColor
},
emphasis:{
borderColor:Style.chartColor
}
}
},
labels: chartData.labels,
xAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'time',
splitLine: {
show: false
},
distribution: 'series'
},
yAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'value',
boundaryGap: [0, '100%'],
splitLine: {
show: false
}
},
series: chartData.data
};
return option;
}
chart
javascript reactjs chart.js
this my chart when put mouse hover point have line , i when delete line because when click on point data display x-axis same data ex: if choice date on x-axis , have there colours each colour diff data but when have line its effect when click point all same data
look to my code . if someone he understand please get me help
Picture chart
look to picture to see chart only press on link chart
enter code here
//define graph line colors
import * as Style from 'styles/config';
export function getCustomTimeChart(chartData){
var legendLabels = ;
var lineColors = Style.lineColors;
//var entryData={};
chartData.data.forEach(function(entry){
entry.type = 'line';
legendLabels.push(entry.name);
//entryData=entry;
});
var title = '';
if (chartData.title){
//title = entryData.data;
title = chartData.title;
}
if (chartData.dataColors) lineColors = chartData.dataColors;
var option = {
title: {
show:false,
text: title
},
textStyle:{
color:Style.chartColor
},
color:lineColors,
tooltip: {
trigger: 'axis',
formatter: function (params) {
params = params[0];
return params.value[0] + ' : ' + params.value[1];
},
axisPointer: {
animation: false
}
},
legend: {
data:legendLabels,
textStyle:{
color:Style.chartColor
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {
title:'Image'
,
backgroundColor: Style.chartBackground
}
},
iconStyle:{
normal:{
borderColor:Style.chartColor
},
emphasis:{
borderColor:Style.chartColor
}
}
},
labels: chartData.labels,
xAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'time',
splitLine: {
show: false
},
distribution: 'series'
},
yAxis: {
axisLine:{
lineStyle:{
color:Style.chartColor
}
},
type: 'value',
boundaryGap: [0, '100%'],
splitLine: {
show: false
}
},
series: chartData.data
};
return option;
}
chart
javascript reactjs chart.js
javascript reactjs chart.js
edited Nov 18 '18 at 9:29
islam kabaha
asked Nov 18 '18 at 8:16
islam kabahaislam kabaha
66
66
Don't use only link, instead show your code.
– Poul Bak
Nov 18 '18 at 8:18
add a comment |
Don't use only link, instead show your code.
– Poul Bak
Nov 18 '18 at 8:18
Don't use only link, instead show your code.
– Poul Bak
Nov 18 '18 at 8:18
Don't use only link, instead show your code.
– Poul Bak
Nov 18 '18 at 8:18
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53359029%2fhow-delete-a-line-on-chart-when-hover-mouse-point%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53359029%2fhow-delete-a-line-on-chart-when-hover-mouse-point%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Don't use only link, instead show your code.
– Poul Bak
Nov 18 '18 at 8:18