Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
b780b637
Commit
b780b637
authored
Feb 11, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed missing time axis on graph due to width not being passed
parent
58e57a16
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
public/app/features/explore/Explore.tsx
+1
-0
public/app/features/explore/Logs.tsx
+3
-0
public/app/features/explore/LogsContainer.tsx
+3
-0
No files found.
public/app/features/explore/Explore.tsx
View file @
b780b637
...
...
@@ -220,6 +220,7 @@ export class Explore extends React.PureComponent<ExploreProps> {
{
supportsTable
&&
<
TableContainer
exploreId=
{
exploreId
}
onClickCell=
{
this
.
onClickLabel
}
/>
}
{
supportsLogs
&&
(
<
LogsContainer
width=
{
width
}
exploreId=
{
exploreId
}
onChangeTime=
{
this
.
onChangeTime
}
onClickLabel=
{
this
.
onClickLabel
}
...
...
public/app/features/explore/Logs.tsx
View file @
b780b637
...
...
@@ -51,6 +51,7 @@ function renderMetaItem(value: any, kind: LogsMetaKind) {
interface
Props
{
data
?:
LogsModel
;
width
:
number
;
exploreId
:
string
;
highlighterExpressions
:
string
[];
loading
:
boolean
;
...
...
@@ -165,6 +166,7 @@ export default class Logs extends PureComponent<Props, State> {
range
,
scanning
,
scanRange
,
width
,
}
=
this
.
props
;
if
(
!
data
)
{
...
...
@@ -215,6 +217,7 @@ export default class Logs extends PureComponent<Props, State> {
<
Graph
data=
{
timeSeries
}
height=
{
100
}
width=
{
width
}
range=
{
range
}
id=
{
`explore-logs-graph-${exploreId}`
}
onChangeTime=
{
this
.
props
.
onChangeTime
}
...
...
public/app/features/explore/LogsContainer.tsx
View file @
b780b637
...
...
@@ -25,6 +25,7 @@ interface LogsContainerProps {
scanRange
?:
RawTimeRange
;
showingLogs
:
boolean
;
toggleLogs
:
typeof
toggleLogs
;
width
:
number
;
}
export
class
LogsContainer
extends
PureComponent
<
LogsContainerProps
>
{
...
...
@@ -46,6 +47,7 @@ export class LogsContainer extends PureComponent<LogsContainerProps> {
showingLogs
,
scanning
,
scanRange
,
width
,
}
=
this
.
props
;
return
(
...
...
@@ -63,6 +65,7 @@ export class LogsContainer extends PureComponent<LogsContainerProps> {
range=
{
range
}
scanning=
{
scanning
}
scanRange=
{
scanRange
}
width=
{
width
}
/>
</
Panel
>
);
...
...
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