PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/Charts/Axes/DefaultTicksProvider.cs

#
C# | 17 lines | 15 code | 2 blank | 0 comment | 0 complexity | dadd7b4514411103f2530abf62a9a615 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Microsoft.Research.DynamicDataDisplay.Charts
  6. {
  7. internal static class DefaultTicksProvider
  8. {
  9. internal static readonly int DefaultTicksCount = 10;
  10. internal static ITicksInfo<T> GetTicks<T>(this ITicksProvider<T> provider, Range<T> range)
  11. {
  12. return provider.GetTicks(range, DefaultTicksCount);
  13. }
  14. }
  15. }