Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rozetko committed Oct 29, 2018
1 parent b0d5a44 commit 869b992
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/partials/axes_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ <h5 class="section-heading">X-Axis</h5>
</div>
</div>

<div ng-if="ctrl.panel.xaxis.mode === 'time'">
<!-- custom date formating -->
<gf-form-switch class="gf-form" label="Custom Date-Time format" label-class="width-12" checked="ctrl.panel.xaxis.customDateFormatShow" on-change="ctrl.render()"></gf-form-switch>
<gf-form-switch class="gf-form" label="Custom Date-Time format" label-class="width-12" checked="ctrl.panel.xaxis.customDateFormatShow" on-change="ctrl.render()"></gf-form-switch>

<div ng-if="ctrl.panel.xaxis.customDateFormatShow">
<input type="text" maxlength="15" class="gf-form-input max-width-20" ng-model="ctrl.panel.xaxis.customDateFormat" ng-change="ctrl.render()" ng-model-onblur>
<br>
<pre class="gf-form-pre alert alert-info">
<div ng-if="ctrl.panel.xaxis.customDateFormatShow">
<input type="text" maxlength="15" class="gf-form-input max-width-20" ng-model="ctrl.panel.xaxis.customDateFormat" ng-change="ctrl.render()" ng-model-onblur>
<br>
<pre class="gf-form-pre alert alert-info">
Use the input field above to override x-axis time-date display to suit your needs.
List of supported variables:
%a: weekday name
Expand All @@ -82,6 +83,7 @@ <h5 class="section-heading">X-Axis</h5>
"DoW index: %w" = "DoW index: 1"
"%y; %m; %d" = "18; 10; 25"
</pre>
</div>
</div>

<!-- Series mode -->
Expand Down

0 comments on commit 869b992

Please sign in to comment.