public void UpdateIntervalWidth()
        {
            IntervalWidth = Frame.Width / intervals.Count;

            for (int i = 0; i < intervals.Count; i++)
            {
                TorqueInterval interval = intervals[i];
                interval.Frame = new CGRect(i * IntervalWidth, Frame.Height - interval.Frame.Height, IntervalWidth, interval.Frame.Height);
            }
        }
        public void Initialize(int frameCount)
        {
            IntervalWidth = Frame.Width / frameCount;

            for (int i = 0; i < frameCount; i++)
            {
                var interval = new TorqueInterval();
                interval.Frame = new CGRect(i * IntervalWidth, 0, IntervalWidth, 0);

                AddSubview(interval);
                intervals.Add(interval);
            }
        }