Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding text label functionality #228

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

guze0001
Copy link

@guze0001 guze0001 commented May 8, 2020

Normally, we can just show values as label, but if we want to add a prefix text before the label we can use "staticLabelsWithText"
sample usage:
staticLabelsWithText: {
font: "13px arial", // Specifies font
labels: [
{label:"Jan",value:50},
{label:"Feb", value:125},
{label:"Mar",value:200},
{label:"Apr",value:275},
{label:"May",value:375},
{label:"June",value: 475}
],
color: "#000000", // Optional: Label text color
fractionDigits: 0 // Optional: Numerical precision. 0=round off.
}

Normally, we can just show values as label, but if we want to add a prefix text before the label we can use "staticLabelsWithText" 
sample usage:
    staticLabelsWithText: {
  font: "13px arial",  // Specifies font
  labels: [
      {label:"Jan",value:50},
      {label:"Feb", value:125}, 
      {label:"Mar",value:200}, 
      {label:"Apr",value:275},
      {label:"May",value:375},
      {label:"June",value: 475}
  ], 
  color: "#000000",  // Optional: Label text color
  fractionDigits: 0  // Optional: Numerical precision. 0=round off.
}
@guze0001
Copy link
Author

guze0001 commented May 8, 2020

adding adding text label functionality

@guze0001 guze0001 mentioned this pull request May 8, 2020
@lironesamoun
Copy link

Does anyone was able to make it work ? I have no error but no text label displayed.

@Suraj1127
Copy link

@lilouch Did you download the JS file with this change? It has not been merged into the base branch, so you should download the particular file of this commit.

@sugapirapagaran
Copy link

i've got the particular commit but still the text is not displayed.. anyone else with the similar issue?

@mahmudtopu3
Copy link

not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants