Skip to content

adding text label functionality#228

Open
guze0001 wants to merge 1 commit intobernii:gh-pagesfrom
guze0001:patch-1
Open

adding text label functionality#228
guze0001 wants to merge 1 commit intobernii:gh-pagesfrom
guze0001:patch-1

Conversation

@guze0001
Copy link
Copy Markdown

@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
Copy Markdown
Author

guze0001 commented May 8, 2020

adding adding text label functionality

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

lironsam commented Sep 2, 2020

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

@Suraj1127
Copy link
Copy Markdown

@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
Copy Markdown

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

@mahmudtopu3
Copy link
Copy Markdown

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