Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
27c70111
Commit
27c70111
authored
Mar 03, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the API docs for axis text changes.
parent
bb0acac9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
API.md
API.md
+23
-6
No files found.
API.md
View file @
27c70111
...
...
@@ -266,11 +266,27 @@ you can also set the color of the ticks separately with "tickColor"
(otherwise it's autogenerated as the base color with some
transparency).
You can customize the font used to draw the labels with CSS or
directly with "font". The default value of null means that the font is
read from the font style on the placeholder element (80% the size of
that to be precise). If you set it directly with "font: { ... }", the
format is like this:
You can customize the font used to draw the labels with CSS or directly via the
"font" option. When "font" is null - the default - each tick label is given the
'flot-tick-label' class. For compatibility with Flot 0.7 and earlier the labels
are also given the 'tickLabel' class, but this is deprecated and scheduled to
be removed with the release of version 1.0.0.
To enable more granular control over styles, labels are divided between a set
of text containers, with each holding the labels for one axis. These containers
are given the classes 'flot-text', 'flot-
[
x|y
]
-axis', and 'flot-
[
x|y
]
#-axis',
where '#' is the number of the axis when there are multiple axes. For example,
the x-axis labels for a simple plot with only one x-axis might look like this:
```
html
<div
class=
'flot-text flot-x-axis flot-x1-axis'
>
<div
class=
'flot-tick-label'
>
January 2013
</div>
...
</div>
```
For direct control over label styles you can also provide "font" as an object
with this format:
```
js
{
...
...
@@ -278,7 +294,8 @@ format is like this:
style
:
"italic"
,
weight
:
"bold"
,
family
:
"sans-serif"
,
variant
:
"small-caps"
variant
:
"small-caps"
,
color
:
"#545454"
}
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment